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,
I want a help in this forum for my below issue.
1. I have a file where I'm searching for a text .
2. When I get the line where the above string is present I want to cut
some texts from the line where the particular string was found.
These above two steps will repeat in the... (2 Replies)
Discussion started by: bhaski2012
2 Replies
3. 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
4. Shell Programming and Scripting
Dear All
iam looking for a help in how to search for values grreater than 4 numbers.
I run the below commad but its still not working
awk '{ print $2 " " $5 }' AllRecords | grep "+008" | grep "length" > 4
Can any one help me.
Regards
Kadir (1 Reply)
Discussion started by: samura
1 Replies
5. Shell Programming and Scripting
can some one help me with a perl command
i have to search and replace a version from a xml-file
so i use in a ksh script a command like this
ssh $GLB_ACC@$GLB_HOST "/usr/contrib/bin/perl -pi -e "s/$curVersion/$new_Version/g" $Dest_dir/epi.xml"
this command worked so far, but the problem... (1 Reply)
Discussion started by: kiranreddy1215
1 Replies
6. UNIX for Dummies Questions & Answers
I have a file in which I need to search if a new line character exists on the last line in the file. Please let me know how can I achieve it using Unix commands? (10 Replies)
Discussion started by: sunilbm78
10 Replies
7. Shell Programming and Scripting
hi every one ,
here is my problem !!
i have to run my script from an account and update the result in a xml file located on a different account. i use existing ssh keys to do it remotely
for example the tags looks like this
<PropertyValueList... (1 Reply)
Discussion started by: kiranreddy1215
1 Replies
8. UNIX for Advanced & Expert Users
Hi,
This is the format of the file that i have
CompanyNumber Run Date: 8/3/2006
6:22:15PM
Address:
Person: A03120
SP SNNu
100 1
200 2
CompanyNumber ... (3 Replies)
Discussion started by: kkm_job
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