OT: sed problem

Daniela dgw at liwest.at
Sat Jan 31 16:44:34 PST 2004


I was wondering how I can do the following with sed (or another program):
1. Output only the text from the start of the line to the first pipe character
2. Output only the text between the last and the previous pipe character
Or, split the line at the pipe characters and assign the parts to different 
shell variables.

Regards,
Daniela




More information about the freebsd-questions mailing list