Linux

Quick tip to change parameters in different files

Quick tip to change parameters in different filesNo Gravatar Hot: for i in *.cfg; do mv $i $i.bak;sed ’s/a/b/’ $i.bak > $i; done The above command is very useful to change certain regular expressions in couple of files in one directory. This can be used in variety of ways to achieve a lot of things which would normally take some time to do manually. Sharevar el = [...]

Technorati Tags: bash, Linux, sed

Blog Traffic Exchange Related Websites

Linux find command – Find file and directories faster and easier

Linux find command – Find file and directories faster and easierNo Gravatar Hot: This command is very powerfull when used with combination of filters and pipes and RE. I will give some example: find . -type f -->> List all files find . -type f -exec rm {} \; -->> Delete all files find . -type d -exec rm {} \; -->> Will through some common errors find . -name "*name*"  [...]

Technorati Tags: Linux

Blog Traffic Exchange Related Websites

Edit a File When You Are Viewing It Using more / less Command

Edit a File When You Are Viewing It Using more / less CommandNo Gravatar Hot: Aritcle here. Edit a File When You Are Viewing It Using more / less Command More > Sharevar el = document.getElementById('share-link-637893540');el.params = {title: 'Edit a File When You Are Viewing It Using more / less Command', link: 'http://blog.amit-agarwal.co.in/2010/03/16/edit-a-file-when-you-are-viewing-it-using-more-less-command/', skin: 'blue', content: 'http://blog.amit-agarwal.co.in/?ibsa=get_content&id=261'};Originally posted 2008-11-02 20:41:41.

Technorati Tags: editor, Fedora, less, Linux, more

Blog Traffic Exchange Related Websites