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.
xxx_1.txt、xxx_2.txt、... xxx_42.txt のように、名前に数字が含まれるファイルがたくさんあるとします。
bash では、これらのファイルのサブセットを操作するのは簡単ですls xxx_{1..33}.txt xxx_{35..41}。
ls xxx_{1..33}.txt xxx_{35..41}
これの tcsh 類似物は何でしょうか?
私の知る限りでは、範囲パターン (単一文字の範囲を除く) を指定する組み込みのメカニズムはありませんtcsh。ただし、たとえば、seqユーティリティ (利用可能な場合) を次のものと一緒に使用できますsed。
tcsh
seq
sed
ls `(seq 1 33; seq 35 41)|sed 's/^/xxx_/;s/$/.txt/'`