Sed

From LinuxSwords Wiki

Jump to: navigation, search

sed

stream editor ;)


delete last line

sed -i '$d' inputfile

use sed and ls to show absolute path

ls | sed "s;^;`pwd`/;"
Personal tools