Asim
HUSANOVIĆ

Tag: linux

admin
Replace a String in Multiple Files in Linux Using Grep and Sed
2012.08.22 10:15:32

Example:

grep -rl 'windows' ./ | xargs sed -i 's/windows/linux/g'

 



Tags: linux | grep | sed | replace | find

Hits: 1250 | Read more...


 
admin
Command to Compress/Uncompress tar.gz and tar.bz2 files
2012.08.22 08:53:39

Compress folder Test/ to Test.tar.gz

tar czfv Test.tar.gz Test/

czfv = ‘Compress Zip File Verbose’
If you want bzip files, use ‘j’ instead of ‘z’.

Uncompress Test.tar.gz to folder Test/

tar -xzf Test.tar.gz


x = ‘eXtract’
Again, if you want bzip files, use ‘j’ instead of ‘z’.



Tags: bash | sh | ksh | linux | unix | tar | gz | bz

Comments 1 | Hits: 1336 | Read more...


 
Page 1 of 4
«StartPrev1234NextEnd»
IDOBlog - blog for joomla 1.5