shell - Scripting on Linux -



shell - Scripting on Linux -

i trying create script run programme on each file in list. have been trying using .csh file (i have no clue if best way), , started simple hello world

echo "hello world"

the problem cannot execute script, or verify works correctly. (i trying ./testscript.csh wrong). haven't been able find explains how run c scripts, , i'm guessing there's improve way too. need alter work?

you need mark executable; unix doesn't execute things arbitrarily based on extension.

chmod +x testscript.csh

also, strongly recommend using sh or bash instead of csh, or larn idiosyncrasies of csh's looping , command flow constructs (some things work within them if done particular way, in particular single-line versions things very limited).

linux shell csh

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -