Jan 9, 2007 #1 moria6 MIS Jul 11, 2000 30 US I would like to delete chars from the start of the line until pattern match (in this case the word "Local") in every line. I know how to delete 1st "n" chars and how to delete a pattern but not how to combine the two. Any help much appreciated! maurie
I would like to delete chars from the start of the line until pattern match (in this case the word "Local") in every line. I know how to delete 1st "n" chars and how to delete a pattern but not how to combine the two. Any help much appreciated! maurie
Jan 9, 2007 1 #2 PHV MIS Nov 8, 2002 53,708 FR A starting point: sed 's!.*Local!!' /path/to/input > output Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
A starting point: sed 's!.*Local!!' /path/to/input > output Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
Jan 9, 2007 Thread starter #3 moria6 MIS Jul 11, 2000 30 US That works perfectly! Thank you!!! maurie Upvote 0 Downvote