On 4/17/10 2:23 PM, William Park wrote: > Key insight would be > > content=$(cat $script | sed ...) > echo "$content" > x > > Look at "x", and see what you got. Why not just put all 3 "sed" > filters in a pipe?
You can do this all with a single sed command and a series of `-e regexp' options. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/