Computing / The BASH Shell
Computing The Bash ShellI have used a number of Unix/Linux shells over the years, but my shell of preference is the For general Linux/Unix information (i.e., not specific to the The PromptWithin your There are several special character sequences defined to include dynamic information or special characters into your prompt. These are:
(I found this info at www.informatik.uni-frankfurt.de/doc/texi/bash_4.html, but that page no longer exists.) For example, I have: declare -x PS1="[\d \t \!] " and my prompt looks like: [Sat Aug 19 18:39:37 501] (with a space at the end). Tips
Read a file (or command output) into a array, with each line as a single array elementThe following reads the contents of #!/bin/bash IFS=' ' RAWDATA=( $(< MAKE_KML.TMP) ) RAWDATA2=( $(grep SLAT *.buf | sort | uniq) ) The first two lines set newline as the field separator. You may want to set it back to space after reading the file into the array. IFS=' ' |
|||||||||||||||||||||||||||||||
loaded 2024-12-06 09:15:49 • last modified 2013-10-26 01:39:42 |