Ivan E.'s Cranky Blog

It's good to feel immortal like your last name is McCloud

Posts Tagged 'bash'

To export a git branch

git archive master | tar -x -C /somewhere/else Post Footer automatically generated by Add Post Footer Plugin for wordpress.

5 July 2011 at 09:10 - Comments

List All Folders in a Folder

for directory in *; do if [ -d $directory ]; then echo $directory; fi; done Post Footer automatically generated by Add Post Footer Plugin for wordpress.

25 May 2011 at 11:05 - Comments

Snippets and Old Age

As I slowly start developing software for Linux -the good ol’ days- I need to refresh my basics. Can I automate a system? Yeah. Do I remember how to refresh a bashrc/cshrc file? No. source .bashrc Post Footer automatically generated by Add Post Footer Plugin for wordpress.

13 August 2010 at 21:26 - Comments

GnuPG and PDF files

Just a reminder. To encrypt all pdf -or any file for that matters- remember this snippet. for file in *.pdf do gpg -e -r <Key-Name> $file done Post Footer automatically generated by Add Post Footer Plugin for wordpress.

13 August 2010 at 07:55 - Comments