10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I 'm writing a script to search particular strings from log files. The log file contains lines start with *. The file may contain many other lines start with *. I need to search a particular line from my log file. The grep command is working in command line , but when i run my script, Its printing... (7 Replies)
Discussion started by: vinus
7 Replies
2. Shell Programming and Scripting
Hi...
I have an inputfile name as :- abc_test_20120213.dat (date in yyyymmdd format)
I need the output file name as abc_test_13022012.dat (date in ddmmyyyy format)
Please help me on this...
Thanks in advance. (5 Replies)
Discussion started by: gani_85
5 Replies
3. Shell Programming and Scripting
Hi,
I am looking for the following:
1. A command to 'grep' the variable from a file
2. And check whether the entered variable is empty in that file
I have a file as given below:
IAGLOBAL_USERID=admin
I want to check with a whether the variable contains a value, say here its admin if... (2 Replies)
Discussion started by: dbashyam
2 Replies
4. UNIX for Dummies Questions & Answers
Dear forum,
Please excuse my ignorance. I have looked through various forum posts and tried various solutions but have not been able to solve my problem.
File1.txt consist of a list of 100 names (one per line). File2.txt contains details for 1000 people (one per line), with the first field... (7 Replies)
Discussion started by: beginner0302
7 Replies
5. Shell Programming and Scripting
Hi friends,
It gives me 3 lines in output which contain word "automation".
But along with it I want the script to return file name from which it got the word.
How to do it?
Plz guide me
Anu (4 Replies)
Discussion started by: anushree.a
4 Replies
6. UNIX and Linux Applications
Hi Everyone,
Can anyone please tell me, how can I redirect the grep command output to same file. I am trying with below command but my original file contains no data after executing the command.
$grep pattern file1 > file1
Kind Regards,
Eswar (5 Replies)
Discussion started by: picheswa
5 Replies
7. UNIX for Dummies Questions & Answers
Hello All - I am looking for help on how to solve a re-occuring problem. I have a file with certain sequences in it that need to be removed. The sequences are always different but the fix is always the same remove those sequences and leave the rest. Another team ID's the bad sequences and then I... (3 Replies)
Discussion started by: candyluv030
3 Replies
8. Shell Programming and Scripting
The Sed/Grep command is really confusing me. I know I'm missing something that should be really easy to fix. My program displays multiple names after I ask it to display only one, How do I get it to do only one??
it looks like this:
Please enter a name to display?
>> John
(A list then... (9 Replies)
Discussion started by: toejam
9 Replies
9. Shell Programming and Scripting
Hi all
I have a file with below content (content is variable whenever new product is launched). I need form a grep command like this
egrep "Unknown product|Invalid symboland so on"
How to do it using a script?
Unknown product
Invalid symbol
No ILX exch found
exceeds maximum size
AFX... (4 Replies)
Discussion started by: johnl
4 Replies
10. Shell Programming and Scripting
Hi, Please help me out
I want to grep the oldest file in a directory,
could I use "ls" command?
and how?
thanx in advance (7 Replies)
Discussion started by: ericaworld
7 Replies