Skip to content
Archive of posts tagged FAQs Help and Tutorials

bash prompts — some good links

Here are some pretty good links on the subject. Since there are already so many blog posts, does not make sense to add one more http://tldp.org/HOWTO/Bash-Prompt-HOWTO/c816.html http://www.gilesorr.com/bashprompt/prompts/ https://bbs.archlinux.org/viewtopic.php?id=84386 Bash themes – http://onlamp.com/onlamp/2006/02/02/bash_themes.html Related articles set prompts for bash Osx? (stackoverflow.com) Difference between Bash shell and Bash terminal? (stackoverflow.com) The Hollywood Reporter Rounds Up Jessica Chastian [...]

using `!#$’ to referance backward-word

Here is something that I found on the commandlinefu cp /work/host/phone/ui/main.cpp !#$:s/host/target Ah well…its very interesting and very useful. Some explanation: !# – means the current command (similar to !! being the last command) $ – represents the last parameter :s – is used for substitution. Related articles CommandLineFu: Amazing Collection Of Command Line Gems [...]

bash regular expressions

Here are some quick links on bash regular expressions, pretty good links to bookmark, if you use, regular expressions in bash regularly. I especially like the tldp link at number 3. http://www.linuxjournal.com/content/bash-regular-expressions http://www.ibm.com/developerworks/library/l-bash.html http://tldp.org/LDP/abs/html/parameter-substitution.html#VARMATCH http://wellington.pm.org/archive/200005/codegen/index9.htm Related articles Renaming a whole bunch of files at once, in bash (ask.metafilter.com) bash math (amit-agarwal.co.in) Efficiency of regular expressions [...]