Asim
HUSANOVIĆ

Tag: grep

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: 1488 | Read more...


 
admin
Bash
2012.07.01 17:51:06

Recursive grep:

grep -rn pattern /path/

 

Find open port and forse close:

Find:

netnetstat -apn |grep 8080

Kill:

lsof -i tcp:8080



Tags: bash | sh | ksh | linux | unix | grep | port

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


 

IDOBlog - blog for joomla 1.5