Quote:
Originally Posted by ghostdog74
If doing it in shell, here's one approach
Code:
while IFS="|" read a b c
do
case "$a" in
">"* ) echo ">$c";;
*) echo $a"|"$b"|"$c
esac
done < "file"
instead of calling grep and awk for each line, you can use the shell's internal functions. much faster that way
|
Thanks Ghostdog for the tip. Could you please explain this code. Thanks !