AWK in column search

Hi friends ,
I am new to unix ,need your help to fix this
there is a ~ deliminated file. how to find the 5th column of the row.

awk  'print $5 ' abc.txt 

it doesnot work . it works for table deliminated file. My data file is like the following manner.
abc.txt
--------

a~b~c~d~e~f
a1~b1~c1~d1~e1~f1

my out put should be

e
e1          

regards
ipsita

To keep the forums high quality for all users, please take the time to format your posts correctly.

First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags

```text
 and 
```

by hand.)

Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.

Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.

Thank You.

The UNIX and Linux Forums

---------- Post updated at 02:02 PM ---------- Previous update was at 02:01 PM ----------

awk -F'~' '{print $5}' abc.txt
$ awk -F~ '{print $5}' file
e
e1

Or:

cut -d~ -f5 file