Category Archives: Bash

Make Bamboo Shell Task Run Using Bash

Bamboo will call shell tasks on *nix agents using sh as opposed to Bash. For Debian agents, this means dash not bash. So, how do we redirect to bash? I found this snippet: [code language=”bash”] if [ “$(ps -p “$$” -o comm=)” != … Continue reading

Posted in Bamboo, Bash, Snippets | Leave a comment

How To Clean SVN Checkout Directory

I just love git clean -xfd but you just don’t get that with Subversion. Instead from your Bash shell (or Cygwin) prompt you can do: svn status –no-ignore | egrep ‘^[?I]’ | cut -c9- | sudo xargs -d \\n rm … Continue reading

Posted in Bash, PowerShell | Leave a comment

Guid To Windows Clipboard Using Cygwin

Guid Generation This will give you a guid to your Windows clipboard using Cygwin. uuidgen | awk ‘{print “{” toupper($0) “}” }’ | putclip If you don’t like the newline that gets added, you can do this: uuidgen | awk … Continue reading

Posted in Bash, Cygwin, Snippets | Tagged , | Leave a comment