Linux
Read More
Replace all instances of one word with another in a file
sed -i ‘s/ord1/ord2/g’ filnavn
A chronological documentation test project, nothing serious, really!
sed -i ‘s/ord1/ord2/g’ filnavn
netstat -nap| egrep “(0.0.0.0).*(0.0.0.0).*LISTEN” | gawk ‘{print $4 “:” $7}’ | egrep -o “:(.*)” | cut -c 2-|sed ‘s/\//\:/’