csh cheat sheet

less than 1 minute read

Published:

Useful snippets of csh scripts.

Loops over arrays

set files = (2 3 4)
set phases = (252.0 250.0 254.0)

foreach i (`seq 3`)
echo $phases[$i]
mv $files[$i]/test.fid test-$i.fid
end