Banner image

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

380 memberDB.php INSERT INTO et_page_visits ( vuid,vpage,vreferrer,vtime,vlang,vagent,vbot,vversion,vguest,vip) VALUES ( "1","http://englishtap.com/help/bash","Unknown","1534616713","","CCBot/2.0 (https://commoncrawl.org/faq/)","","biscuits-12y","","54.80.87.62") ON DUPLICATE KEY UPDATE vuid = "1" ,vpage = "http://englishtap.com/help/bash" ,vreferrer = "Unknown" ,vtime = "1534616713" ,vlang = "" ,vagent = "CCBot/2.0 (https://commoncrawl.org/faq/)" ,vbot = "" ,vversion = "biscuits-12y" ,vguest = "" ,vip = "54.80.87.62"
538 engine.php getContent help