Tips tagged sed


32

Tip #205   Convert permissions to octal

Converts the symbolic permissions to octal (ie: numbers) when using 'ls -l':

Read more »

19

Tip #177   Copy and paste from the command line

Add the following alias and function to your profile to be able to copy and paste files at the command line:

Read more »

15

Tip #701   Stream YouTube videos directly to your media player

YouTube is great, but the embedded flash player doesn't offer a lot in the way of customizing your viewing experience. There are quite a few options for downloading flv video files from YouTube, but adding the following function to your bashrc will let you stream them directly to your choice of media player.

Read more »

13

Tip #11  

Add commas to all numeric strings in a file, changing "1234567" to "1,234,567"

Read more »

13

Tip #172   Create daily backups

To create a set of backed up files with the current date added at the end of the file name try the following:

Read more »

13

Tip #209   Directory Tree

The following alias will print the directory structure from the current directory in tree format.

Read more »

11

Tip #43   Using Perl instead of Sed

Prefer Perl over Sed? No problem! To use Perl as a Sed-like program:
Read more »

11

Tip #300   Find and replace on specific files

Selective content replace on files. For example to replace '<?' with '<?php' in all PHP files:
Read more »

11

Tip #294   Mass-renaming files

Mass-renaming files using find and sed:
Read more »

10

Tip #878   Random xkcd comic

Displays a random xkcd comic. Requires ImageMagick.

Read more »