Awk Problem - Help Me
i have one file (4geList) which contains two strings(filename) in each line seperated by '|'.
Using the following script: awk -F '|' '{ printf "%s|%s",system("basename " $1 " .4gl"),system("basename " $2 " .4ge") }' 4geList It outputs the two string as follows: menu main 0|0 My expectation is, it should come menu|main Please help me in this problem. Kalyanaraman |
Please post your thread once and in only one forum. Posting a single thread in the most relevant forum makes it easier for members to help you and keeps the discussion in one place. This thread should be closed because it is a duplicate of http://www.linuxquestions.org/questi...d.php?t=524615.
Please read and understand the LQ Rules before continuing. Thanks in advance. |
All times are GMT -5. The time now is 07:43 AM. |