# fuser 8080/tcp
Showing posts with label Bash. Show all posts
Showing posts with label Bash. Show all posts
Saturday, 11 January 2014
Tuesday, 7 February 2012
Bash: How to zip a folder (.zip)
$ zip -r foo.zip foo
Labels:
Bash
Wednesday, 27 July 2011
Monday, 30 May 2011
Friday, 22 April 2011
send e-mails from a shell script including file attachments
Install uuencode:
$ sudo apt-get install sharutils
Labels:
Bash
Remove empty lines from txt
$ sed '/^$/d' input.txt > output.txt
Replace a string with another string in all files
$ sed -i 's/old-word/new-word/g' *.txt
$ perl -pie 's/old-word/new-word/g' input > output
References
http://www.cyberciti.biz/faq/unix-linux-replace-string-words-in-many-files/
Subscribe to:
Posts (Atom)