Tip #628 Edit a file on a remote host
You can directly edit a file on a remote host with the following:Read more »
- TAGS:
- scp
Tip #627 Convert pdf to jpg
This command will convert all .pdf files in a directory into a 800px (wide or height, whichever is smaller) image (with the aspect ratio kept) .jpg.Read more »
- TAGS:
Tip #614 Uppercase to lowercase with tr
The 'tr' command can be used to quickly convert uppercase to lowercase and vice versa. This is done with:Read more »
- TAGS:
- tr
Tip #605 Un-alias a command
I used to have 'em' as an alias for Emacs. One day, I wanted to edit a file and typed 'rm' instead of 'em', losing the file I had no backup of. So I set a common alias to keep me focused.Read more »
- TAGS:
- alias
Tip #574 Directory to iso image
Create an iso image from the contents of a directory:Read more »
- TAGS:
- mkisofs
Tip #573 When did I start work today
I noticed a one liner here for working out when you started work that day. The code given was:Read more »
Tip #572 Print until no match
This bit of sed will print the contents of a file until the first line which doesn't contain the specified expression. A useful alternative to 'head' when you're not sure how much of the file you need.Read more »
- TAGS:
- sed
Tip #571 Change file extension revisited
And again about file extension changing.There are two tips about this:
#27 - http://www.shell-fu.org/lister.php?id=27
#544 - http://www.shell-fu.org/lister.php?id=544
I'm happy to provide one more variant. It's up to you which one is the most useful. Read more »
alias aptitude at awk bash bc cal cat cd colrm comm cp csh curl cut date dd df dialog diff dirname dpkg du fc find fuser grep gs gzip history iconv kill ksh last less ln ls lsof lynx m4 md5sum mkdir mkfifo mkisofs mv mysql nc netstat openssl OSX perl ping popd ps pushd python read redirection rm scp screen sed sort ssh stat sudo svn tail tar tee test top tr uniq vim wc wget xargs