Search Results

Search: Posts Made By: nsai
1,492
Posted By nsai
Thank you, MadeInGermany. The command provided by...
Thank you, MadeInGermany. The command provided by you worked, without me meddling with the files.

Once again Thanks to you both (RavinderSingh13 and MadeInGermany) for helping me with the...
1,492
Posted By nsai
Thanks so much, RavinderSingh. Thanks for all the...
Thanks so much, RavinderSingh. Thanks for all the information. I was unaware of the Ctrl M characters earlier.
I cleaned up the ^M characters from both the pattern_file.txt and input_file.txt. Then...
1,492
Posted By nsai
Hello RavinderSingh, I'm still getting the same...
Hello RavinderSingh,
I'm still getting the same output "doc-C2-16354"
I executed the below command:

$ awk 'FNR==NR{a[$0];next} ($2 in a)' pattern_file.txt FS="-" input_file.txt

Output:...
1,492
Posted By nsai
How to iterate Grep via all patterns provided in an input file?
When I use the following grep command with options -F and -f, its just displaying the text related to only the last pattern.

Command: $ grep -f pattern_file.txt input_file.txt

Output:...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 03:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy