Basically I'm trying to write a CShell script that calls an awk script on a given directory (given in command-line). I keep getting a syntax error with my code though:
#!/bin/csh
set dir = $ARGV[1]
foreach file ( $dir/* )
set output = 'awk -f /Desktop/aal $file'
echo $output
end