10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
buddies,
my requirement would be as follows,
I have a file called test.txt and content of it would be
yahoo
gmail
hotmail
and i want to search a file name called "yahoo.html" (first line of test.txt) and then "gmail.html" and then "hotmail.html" in a /home/test dir.
Any idea... (8 Replies)
Discussion started by: natraj005
8 Replies
2. Shell Programming and Scripting
Hi,
Can you guys help in writing script based upon my requirement.
The requirement is :
Th script should poll or sniff an log file every minute or every second. The log file name is "license.txt"
In the log file if it founds "not valid" then it should send mail to a group.
the logic... (3 Replies)
Discussion started by: rockingvj
3 Replies
3. UNIX for Dummies Questions & Answers
Hi all,
I have a TAB separated file like this:
sample.rpt:
54 67 common/bin/my/home {{bla bla bla}} {bla bla} Replace Me
89 75 bad/rainy/day/out {{ some bla} } {some bla} Dontreplace Me
......
......
I wish to do a regexp match on the 3rd... (2 Replies)
Discussion started by: newboy
2 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I am trying to find a particular patter in multiple UNIX files (also contain system files,hidden files and normal files)
i am now using
CMD: egrep -ali 'pattern' *
i am not getting the required result, i just need files path and finename
Naveen (3 Replies)
Discussion started by: Naveen_5960
3 Replies
5. Shell Programming and Scripting
Hi i have a requirement to search for all files in a directory.
the files will start as file1_*,file2_*,file3_*
where the wild card character is a timestamp. so on a particular day i may get files like
file1_1103120042
file1_1102010345
file2_1101093423
file3_1103120042... (3 Replies)
Discussion started by: Sgiri1
3 Replies
6. Shell Programming and Scripting
Frds
I have to search for a string which is starting with brighton which will be first in the line of a text file test1.txt. The contents of test1.txt are file names like
-----
brighton
brighton_gt
hst_brighton
gst_brighton
-------so many files------
---------
i have retrieve only... (3 Replies)
Discussion started by: KiranKumarKarre
3 Replies
7. UNIX for Dummies Questions & Answers
My requirement is to replace a a particular pattren in a script from A to B.
I am not sure if this can be done through sed command or through awk .
The file sv.inc is
window DialogBox AddConnection
tag "~ActiveApp/Add Connection - Provider Type?URL"
I would wnat the file to be... (10 Replies)
Discussion started by: bsandeep_80
10 Replies
8. Shell Programming and Scripting
Hi,
I was able to print lines when search for specific string using awk but i want to print when search for two different strings using awk instead of doing two times (Print lines only contain "Insert Records and Insert into" not between lines)
Ex:
awk '/Insert Records./' a4.log
It... (3 Replies)
Discussion started by: mohan705
3 Replies
9. Shell Programming and Scripting
Is there any way to do case insensitive search with awk for the below statement:
month1=`awk '/month/' ${trgfile} | cut -d"=" -f2`
the "month" could come as Month, mOnth,MONTH etc. in a file.
Now I am looking for "month"....
Thanks,
AC (4 Replies)
Discussion started by: acheepi
4 Replies
10. UNIX for Advanced & Expert Users
Can any one tell me if there is an easy way to find a text in an unknown file name in a dierectory.
I'm trying to search for the text "where is john going" from a file
whose name I do not even know. There are about 1000 files in that directory and one of the files has this text in it.
Can... (11 Replies)
Discussion started by: ted
11 Replies