10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I have a file as shown below :
1836 21000 01052019 BH90P.TEMP.DA1836.FTP W NULL S
1836 22000 01052019 BH90P.TEMP.DA1836.FTP W 1836/21000 ... (2 Replies)
Discussion started by: krishnaswarnkar
2. UNIX for Beginners Questions & Answers
I have a file like this. I want to filter values for only the particular day.
# cat /tmp/1
Name Mon Tue Wed Thu Fri Sat Sun
G Y Y
I want to... (4 Replies)
Discussion started by: thomasraj87
3. Shell Programming and Scripting
I have this input file
file1 (uniq records)
54655210492... (13 Replies)
Discussion started by: jiam912
4. UNIX for Dummies Questions & Answers
I want to grep based on first column and print all the columns. for eg.
root 12344 /sh
root 33389 /bash
oracle 87378 /tech/oracle
oracle 26367 /tmp/oracle
Now I want to grep based on user "root" in first column and print like below.
root ... (14 Replies)
Discussion started by: baladelaware73
5. Shell Programming and Scripting
i have a text file with some fields.
i am selecting a line using grep command using the combination of 1st 3 column.
grep "aaa|bbb|ccc" file.txt
now i want to cut a field from this... (5 Replies)
Discussion started by: Little
6. UNIX for Dummies Questions & Answers
Hello. How does one grep lines in a file that have only one field?
AAA BBB CCC
Is is possible to grep "DDD" becuase it has only one field?
---------- Post updated at 08:03 PM ---------- Previous update was at 07:25 PM ----------
I found it, thank you!
awk 'NF... (2 Replies)
Discussion started by: jimmyf
7. UNIX for Dummies Questions & Answers
i have a data sm thg like this
28504 0 abc 148782859 42 101M nhmmmm ilopo abc 2345432
i want to get only the field which is just aftr abc i,e., 148782859, 2345432
i have used grep /abc\t/ filename to get that but its not working can any 1 help me out (5 Replies)
Discussion started by: anurupa777
8. Shell Programming and Scripting
I would like to search for a specific string at a specific line in a file and would like to know the count of it.
ABC 1234 BELL
HNZ 4567 RING
NNN 5673 BELL
Please help with the command to find the count of BELL in the above file samp.txt at the specific line 10 with... (7 Replies)
Discussion started by: techmoris
9. UNIX for Dummies Questions & Answers
the file has several date fields.for example, #2, #3,and #5 are date fields.
I want grep year '2002' just within #2 field and get all the rows which content year '2002' in the #2 field. is it possible to do this? how to do it? Thanks (2 Replies)
Discussion started by: tiff-matt
10. UNIX for Dummies Questions & Answers
I wonder how to change the field separator of grep from : to space when use grep to display.
for example when I use
grep -e 'pattern1' -e 'pattern2' -n filename
to find patterns, it use : to separate patterns, but I want to use blank space. is there an option I can set to... (2 Replies)
Discussion started by: Jenny.palmy