{{parent page="HomePage"}} ===Bash stuff=== [[ShellScriptRegex Regular Expressions]] [[BashGetOpt Options processing with getopt]] ----- ===Compiling shell scripts to binary executables=== http://www.datsi.fi.upm.es/~frosal/ Use the command **shc -f script_file_name** ===Bash=== CHeck out bash4 http://www.bash-hackers.org/wiki/doku.php/bash4 ==Bash array and for loop== %% #!/bin/bash DIRS[0]=one DIRS[1]=two DIRS[2]=three for d in ${DIRS[@]} do echo $d done %% ==enable history timestamp== Save this in /etc/bashrc, this will enable timestamp display with the history command %% export HISTTIMEFORMAT="%Y-%h-%d - %H:%M:%S " %% ==bash shortcuts== ""
| ^a | Go to beginning of line |
| ^a, alt-l | Go to beginning of line, and change all letters to lower case |
| alt-c | Change line to lower case |
| ^e | Go to end of line |
| ^r | Go to end of line |
| ^k | Delete line |
| ^w | Delete word |
| ^y | Undo deletion |
| ^l | Clear screen |