10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i have a file where the hostnames and variables are in same line in below format, am able extract some part variables while otherlike subscriptions and handler is missing.
can you please correct me if grep is able to perform this ?
localhost subscriptions='' handler="genie"... (14 Replies)
Discussion started by: rakeshkumar
2. Shell Programming and Scripting
I am trying to understand what the grep command in ubuntu is trying to do here.
The contents of my test file is given below
harsha@harsha-H67MA-USB3-B3:~/Documents$ cat data
When I grep for 3 dots (...) without the parenthesis as follows I would expect the... (4 Replies)
Discussion started by: sreeharshasn
3. UNIX for Dummies Questions & Answers
I am trying to find patterns in files using grep -l -e. I specifically am searching for abc. I want any file that has abc in it, but not just the letters abc. I am searching for a pattern a followed by b followed by c. I have tried egrep -l and also I have tried the following:
grep -el... (2 Replies)
Discussion started by: newbie2010
4. Shell Programming and Scripting
is it possible to reverse the output of grep -o (9 Replies)
Discussion started by: squrcles
5. Shell Programming and Scripting
I am totally unexperienced in writing scripts of any kind.
I am working on Mac OS X and would like to run a shell script to find files in a directory that do not conform to a specific naming convention and print to a text file in the same directory.
For example, I have a folder called... (9 Replies)
Discussion started by: j_alicea
6. Shell Programming and Scripting
I need to make a script to extract the number that are not in a file.
I have file-A that has 100000 (70000-799999) numbers. And a file-B with number that already are in the system. Now I need to know/get the numbers that are not in system.
I was thinking something like this:... (5 Replies)
Discussion started by: AK47
7. UNIX for Dummies Questions & Answers
I have a file f1 wi the following data
Post Requests : 2 Post successes : 2
I need to search for the... (2 Replies)
Discussion started by: RP09
8. Shell Programming and Scripting
Relatively new to scripting, but really struggling with something that will no doubt be second nature to most people on here:
Trying to get an exact match on $sub, where sub is an ip address.
... (18 Replies)
Discussion started by: CiCa
9. Shell Programming and Scripting
I am trying to match white space in patterns through - Grep
I tried ] & ] but none of them worked.
Then I tried Perl extension '\s' and it worked.
So just wanted to know if ] & ] are still supported or have they become deprecated.
However they have been mentioned in the... (3 Replies)
Discussion started by: paragkalra
10. UNIX for Advanced & Expert Users
Below is the scenario. Help is appreciated.
File1: ( 500,000 lines ) : Three fields comma delimited : Not sorted
File2: ( 4,000,000 lines ) : Six fields comma delimited (Last 3 field should match the 3 fields of File1) : Not Sorted :
... (13 Replies)
Discussion started by: hemangjani