Next: learning materials for sed, Up: (dir) [Contents]
This manual is for program, version version.
• learning materials for sed: | ||
• often used command for sed: |
Next: often used command for sed, Previous: Top, Up: Top [Contents]
Previous: learning materials for sed, Up: Top [Contents]
sed -n '1,3p' temp.txt // print line1 to line3
extract log
Extract the lines which include the string from "2012-02-09" to "2012-09-10" sed -n '/^2012-02-09/,/^2012-09-10/p' whole.log > part.log reference
add string to line tail
sed 's/$/tail/' test1.txt reference