Content / help / bash .. concise-view << previous next >>

Help Bash

Bash Tips

To debug a bash script you might need a log file to capture output and you can add user input statements

#cd /home/webj #vi .bash_profile #whoami

User keyboard input in bash script

read -n1 -p "Quit [y,n] ? " doit
case y|Y
  exit
esace
BASH FUNCTIONS for REPEATED CODE BLOCKS

Copy the debug code block by marking the beginnning and end then running a block copy command:

Place marks on the two lines with ma and mb, then run :'a,'byank.





iBiscuits LOGO