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.
howto put ctrl chars in bash script
Name: Peter Marshall Date: May 8, 2003 at 05:27:53 Pacific OS: intell CPU/Ram: 256
Comment:
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 "\005" ;did not work ^D ;did not work ^d ;did not work echo ^d ;did not work echo "^D" ;did not work echo `^D` ;did not work
anyway, if you have any ideas, it would be much appriciated.
Summary: 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 n...
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 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...