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.
help in Bash script
Name: peter bell Date: April 28, 2003 at 04:29:32 Pacific OS: linux CPU/Ram: plll 500 123 mb
Comment:
I need help in Bash script. 1. How to output a particular line of a file eg the 8th line? 2. How to store the output of a command as a variable for later commands?--eg "wc -l filename" will give the number of lines of the file, but how to store this outputed number as a variable for later use ? Thank You
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...
Summary: I am trying to put ctrl-d in my bash script. (need to execute a command that needs ctrl-d to end the command). Does anywone know how to put it in the script ? I tried doing the following echo -e "\0...
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...