All Tips


12

Tip #628   Edit a file on a remote host

You can directly edit a file on a remote host with the following:

Read more »

6

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:

4

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

7

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 »

5

Tip #574   Directory to iso image

Create an iso image from the contents of a directory:
Read more »

8

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 »

4

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 »

8

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 »