% perl -p -i -e 's/one/two/g' file
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:
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
Short cut : CTRL X ret F
Sunday, March 23, 2008
Subscribe to:
Posts (Atom)