Pario TechnoBlob
About Posts

Tag: sed

Current directory name pwd | sed s///n/g | tail -n 1 | sed s/\ /_/g
Aug 15, 2007 7:49AM
List processes in a hierarchy ps -e -o pid,args --forest List processes by % cpu usage ps -e -o pcpu,cpu,nice,state,cputime,args --sort pcpu | sed '/^ 0.0 /d' List processes by mem usage ps -e -orss=,args=...
Jun 9, 2007 2:04AM
Text manipulation using sed Replace string1 with string2 sed 's/string1/string2/g' Modify anystring1 to anystring2 sed 's/(.*)1/\12/g' Remove comments and blank lines sed '/ *#/d; /^ $/d' Concatenate...
Jun 9, 2007 1:59AM
Replace word in files Example: replace Strict with Transitional in your PHP-files sed -i -e 's/Strict/Transitional/' *.php Warning! Edit files in place
Jun 7, 2007 1:20PM
«« « 1 2 3 4  …  9 » »»
Posts About
© 2007-2020 Pario TechnoBlob
Powered by Axiom