I need the syntax how to handle special characters '[]' in a csh (or another) script. In my directory several files have string '[1]' in their filenames and I would like to rename them all with a script to remove '[1]' from filenames. (like 'mv filename[1].jpg filename.jpg')
I guess the...
In a csh script I check if a variable (one character) is not a number:
if ($myvar !~ [0-9]) then
How to do the same for say the first three characters of any variable?
I mean if any of them is not a number then...
I have a csh script that gives me a text line as output.
I can add this line to the end of a file by using >>
How to add the line to be the first line of the file?
Now I use a temporary file for output and join the files as separate command to get the last output be the first line. That works...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.