* http://www.grymoire.com/Unix/sed.html# ToDo * https://learnbyexample.github.io/learn_gnused/breere-regular-expressions.html ==== Sed ==== sed -n '/^foo/,/^bar/p' /etc/passwd | sed -r '/^(foo|bar)/d' # Print the range of lines between foo and bar w/o foo and bar. sed -e "s/rzr/RzR/g" < filein.txt >| fileout.txt sed -e "s/rzr/RzR/g" -i fileinout.txt echo " trim space " | sed -e "s/^[[ ]]*//g" | sed -e "s/[[ ]]*$//g" locate -i -r '\.o$' Using variables : echo $PATH | sed -e "s|$USER|root|g" http://www.student.northpark.edu/pemente/sed/sedfaq4.html#s4.30 didiwiki put EOF at botom see as "^@" on [[Emacs]], workaround : sed -e "s|\x0||g" -i * http://www.inrialpes.fr/pop-art/people/girault/Cours/Automates/td3.html zero or more: [[:alnum:]]* one or more : [[:alnum:]][[:alnum:]]* u=http://uuner.doslash.org/forfun/sedtris.sed && wget "$u" && u=http://sed.sf.net/grabbag/scripts/playsed.sh.txt && wget "$u" && bash playsed.sh.txt sedtris.sed ==== WTF ==== * [[sed]] http://libregamewiki.org/Sedtris ===== MORE ===== @TaG: [[regex]] {{http://www.ecrans.fr/local/cache-vignettes/L450xH413/tumblr_l5gcxy6EaU1qzpwi0o1_500-a71fd.jpg}}