Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
bash script which looks simple
Name: yacob Date: March 20, 2008 at 09:20:02 Pacific OS: linux CPU/Ram: 2GB Product: linux
Comment:
I have a script as below which works out all the file in one directory with an extension of *.grb. It goes all those file and all sort of work is done in between, calling fortran code and a mix of call to GMT commands. Now I want to go to different subdirectories and do the same.
#!/bin/sh for i in *.grb ; do
# in between all sorts of command has been made here, not shown.
done
I want the above script to go through a subdirectories and looking files which ends *.grd. How can I do this ?
Summary: A bash script that would scroll through the files in a particular directory (an arbitrary number of files, with arbitrary names, in a specified directory) would be very useful. If someone knows how to...
Summary: I want to have a simple apps menu, in bash script, for users that don't want access to the shell. How can I provide a "Logout" option to do the equivalent of 'Ctrl-D' and log the user out of the syste...
Summary: I'm new to bash scripting and for practice I'm making a script called rubbish as an alternative for "rm". The idea is if you type "rubbish file1 file2" it sends unwanted files to a directory called r...