Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to handle the delimiter unit seperator in Unix

Answer Posted / srikanth

create script test.txt with | seperated

The below commands can be used to get the fields values:

awk -F"|" '{print $1}' test.txt

cat sri.txt | cut -d"|" -f1

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the significance of $#?

1170


c program which behaves like a shell(command interpreter). it has its own prompt say "NewShell$".any normal shell command is executed from your shell by starting a child process to execute a system program corrosponding to the command

5491


How do scripts work?

1085


What is the default shell of solaris?

1090


What does echo $0 do?

1026


How do you find out What is your shell?

1102


How to print all array elements and their respective indexes?

1020


Explain about stdin, stdout and stderr?

1236


What is web script?

1140


Suppose you execute a command using exec, what will be the status of your current process in the shell?

1118


how to get part of string variable with echo command only?

1074


How to redirect both standard output and standard error to the same location?

1204


What is the syntax of "nested if statement" in shell scripting?

1149


How can the contents of a file inside jar be read without extracting in a shell script?

1182


How does shell scripting work?

1173