Hi friends
I need to splict special character "|" here.
Here is my script which giving error
LINE=INVTRAN|cd /home/msgGoogle
TraxFolderType=`awk -F"|" '{print $1}' $LINE`
filePath=`awk -F"|" '{print $2}' $LINE`
echo "TraxFolderType: "$TraxFolderType
echo "filePath :"$filePath
output:
------------
awk: cmd. line:1: fatal: cannot open file `INVTRAN|cd' for reading (No such file or directory)
awk: cmd. line:1: fatal: cannot open file `INVTRAN|cd' for reading (No such file or directory)
TraxFolderType:
filePath :
there is a space in 2nd string "cd /home/msgGoogle"
its giving problem
I need output like
TraxFolderType:INVTRAN
filePath :cd /home/msgGoogle
Please give me suggestions.
Thanks
Krishna