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
What is the significance of $#?
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
How do scripts work?
What is the default shell of solaris?
What does echo $0 do?
How do you find out What is your shell?
How to print all array elements and their respective indexes?
Explain about stdin, stdout and stderr?
What is web script?
Suppose you execute a command using exec, what will be the status of your current process in the shell?
how to get part of string variable with echo command only?
How to redirect both standard output and standard error to the same location?
What is the syntax of "nested if statement" in shell scripting?
How can the contents of a file inside jar be read without extracting in a shell script?
How does shell scripting work?