10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Iam a newbies to Shell scripting. Iam trying to replace the date inside the file to new date. is there anyway that we can just use the pattern to search as "..." I have many files want to replace with the same date, and each file contains different date.
Thanks for your help.
... (2 Replies)
Discussion started by: Daro
2. UNIX for Dummies Questions & Answers
I have got some 10 filenames stored in a file or displayed in the console as a result of some query i made.. Now I need to open each of these files and search for a pattern in these 10 files.. Can someone help me with this?
Jean (9 Replies)
Discussion started by: jeanjkj
3. Shell Programming and Scripting
The problem is similar to my yesterday post
I Would like an awk script that does the following:
I have a file (f1) that contains 1
5and another one (f2) that contains 8|a
7|jAnd I'd like to get this:
4|g (5 Replies)
Discussion started by: tukuyomi
4. Shell Programming and Scripting
I am writing a shell script to extract only the error message from a log file.
I am having difficulty in searching the highlighted text in the below code.
<runtimeinfo datetime="Sun Apr 04 20:02:52 EDT 2008" docid="" source="RAWDATA" event="ERROR"... (2 Replies)
Discussion started by: prash1986
5. Shell Programming and Scripting
Please can someone assist in the script I have made that searches a pattern in a file and delete the whole line containing the pattern.
# The pattern that user want to add to the files
echo "Enter the pattern of the redirect"
# check if the user has... (1 Reply)
Discussion started by: Shazin
6. Shell Programming and Scripting
I would like to print words in a file seperated by whitespaces containing a specific pattern like "="
e.g. I have a file1 containing strings like
The= some= in
<eof> .I want to display only those words containing = i.e The= , some=,wish=
... (5 Replies)
Discussion started by: sree_123
7. UNIX for Advanced & Expert Users
everybody this is my pattern in a file
thomson, nicolas 5-3871
Wong, Fred 4-4123
Jones, Thomas 1-4122
Salazar, Richard 5-2522
first name and last names of people fallowed by Tele.
while i am searching for pattern first name begin with 'S'... (8 Replies)
Discussion started by: ksr.test
8. UNIX for Dummies Questions & Answers
It's possible to use "find" to search a file that was modified for example between 5/10/2004 and 7/11/2005? How can i do this? I saw there is option -mtime, but i don't understand how to use it in this case. Thanks (4 Replies)
Discussion started by: Kaminski
9. Shell Programming and Scripting
Suppose u have a file
so output shud like
Thanks (2 Replies)
Discussion started by: cdfd123
10. UNIX for Advanced & Expert Users
I am trying to search through a file for a particular word, then once found, I want the search to carry on for another 30 lines and append all this to a new file. For example, I search for the word "test" in hello.txt:
<--some more... (7 Replies)
Discussion started by: ocelot