Originally Posted by ghostdog74
If doing it in shell, here's one approach
while IFS="|" read a b c
case "$a" in
">"* ) echo ">$c";;
*) echo $a"|"$b"|"$c
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 !