1

Sed/awk/perl command to replace pattern in multiple lines

view story
linux-howto

http://www.unix.com – Hi I know sed and awk has options to give range of line numbers, but I need to replace pattern in specific lines Something like sed -e '1s,14s,26s/pattern/new pattern/' file name Can somebody help me in this.... I am fine with see/awk/perl Thank you in advance (HowTos)