User Tools

Site Tools


tutorials:bash_scripting:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
tutorials:bash_scripting:start [2012/02/24 17:33] rmilestutorials:bash_scripting:start [2012/02/24 17:36] rmiles
Line 16: Line 16:
  
 I keep my scripts in ///usr/local/bin// but often save them into ///home/~[somewhere]// when writing them. If I want to run the script I'm working on and it isn't in my //PATH// I usually //cd// into the directory and run the script as //./[scriptname]//. I keep my scripts in ///usr/local/bin// but often save them into ///home/~[somewhere]// when writing them. If I want to run the script I'm working on and it isn't in my //PATH// I usually //cd// into the directory and run the script as //./[scriptname]//.
 +
 +You can test a script for errors without running it with the command //bash -n [scriptname]//.
  
 I suggest that these articles be read in order as each article will assume that the reader understands what has been introduced in the previous article(s). I will explain only what is required to understand how the scripts work. For further information check the man pages, online resources, etc.  I suggest that these articles be read in order as each article will assume that the reader understands what has been introduced in the previous article(s). I will explain only what is required to understand how the scripts work. For further information check the man pages, online resources, etc. 
tutorials/bash_scripting/start.txt · Last modified: 2017/10/12 21:58 by 127.0.0.1