Showing posts with label unix. Show all posts
Showing posts with label unix. Show all posts

Wednesday, April 9, 2008

Perl on the fly

To replace string in a file on the fly using perl simply enter in the command line the following:

% perl -p -i -e 's/one/two/g' file

The script simply replace all entries of "one" with "two".




find command

http://www.grymoire.com/Unix/Find.html#uh-0

Friday, April 4, 2008

File line ending from DOS to UNIX or MAC

Alt+x set-buffer-file-coding-system

Short cut : CTRL X ret F

Sunday, March 23, 2008

top list of processes

command : top -u
OS : Linux & Mac OS
list the top running processes