how to distinguish between tab and space in a file
suppose in tab separated file with n columns and if in a column i put a value which is space separated .how can i able to find out a specific column..ie
ram kumar verma<TAB>ram nagar<TAB>43
now i want to print NAME column(or any column).
how can i do that?
thanks in anticipation!
I think "cut" command that is a filter in Linux does exactly what you are desiring.....It by default takes TAB as a delimiter.
Look into it....
Hope it helps!!
Have a look at the man page for awk:
I think you want the cut command.
It will work fine as long as your fields are tab delimited and your needs are simple.
If you want to do very complex text transformations then you should look into gawk.
|All times are GMT -5. The time now is 09:20 PM.|