Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
名前に変数を含むファイルにアクセスしようとしています (つまり、file_n: file_1、file_2 など)。私はそれにアクセスしようとしています
cat $file_$n
しかし、これはうまくいきません。何か案は?
ファイルから削除し、代わりに$使用してファイルの内容を表示します。cat file_$n
$
cat file_$n