Blogs Directory

Saturday, June 8, 2013

SED command line : Easy use guide

SED is a very powerful text processor which you can use to accomplish some tasks on the input file. As a vlsi engineer it is a must to have some basic knowledge about the sed language in order to execute your tasks efficiently. Remember efficiency only comes when it is done in fast and reliable manner.


The usage of sed is :

sed OPTIONS [script] [input file.....]

Some of the very useful commands are :

1. 's' for substitute :

example usage is : sed 's/day/night/' input_file >> output_file

The above command would replace 'day' with 'night' in the input file and saves a new file 'output_file' with the modifications.


No comments :

Post a Comment