How to handle the delimiter unit seperator in Unix
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / pitambar mishra
Different types of command using delimiter :
1. cut -d "|" -f6 emp.lst
d : delimiter or field separator
2. sort -t "|" -nk6 emp.lst
t : delimiter or field separator
3. awk -F "|" '{print $6}' emp.lst
F : delimiter or field separator
| Is This Answer Correct ? | 2 Yes | 0 No |
Given a file find the count of lines containing the word "abc".
What does it mean to debug a script?
Create a bash shell script that reads a line from the user consisting of 5 words and then prints them out in reverse order. Name this script "reverse.sh"
how did u debugging in unix/ linux platform ??( project Related)
How to initialize a directory size to a variable??
What is basename in shell script?
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
What are zombie processes?
write a shell script to identify the given string is palindrome or not?
17 Answers CTS, HP, IBM, InfoEst, Wipro,
Determine the output of the following command: [ -z “” ] && echo 0 || echo 1
write a shell script to check whether all the directories in the path exist has read and write permission
What is gui scripting?