WeeksD1|$26.52|$26.52|03/02/2013|12.48|D1|1.09|0|0|0|0|0|.95|0|0|0|0|0|0|0|0|0|0|0|0|0|0||$0.00|$0.00||0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0||$0.00|$0.00||0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0||$0.00|$0.00||0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|$0.00|$0.00|$0.00|$0.00|$0.00|$0.00|$0.00|G4|$12.24|$0.00|$0.00|$0.00|$0.00|$12.24|T1|$0.00|$0.00|$0.00|$0.00|$0.00|$0.00|$0.00|$0.00|$0.00|$0.00|$0.00|$0.00|$0.00|$0.00|$0.00|$0.00|M1
i used the following command :
awk -v a="$lineInput" -v b="D1" 'BEGIN{print index(a,b)}'
need to find " |D1|
" string .. how can i use the pipe in the search .
Thanks
Mani