10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have two arrays one has the file paths to be searched in , and the other has the files to be serached.For eg
searchfile.dat will have
i have to search for files that could be abc303*.dat or for that matter any extension . abc303*.dat.gz
The following code... (2 Replies)
Discussion started by: 100bees
2. Shell Programming and Scripting
I have few lines to be inserted in file_lines_to_insert.
In another file final_file, I have to add lines from above file file_lines_to_insert before a particular pattern.
$ cat file_lines_to_insert => contents are
In another file final_file, before a... (6 Replies)
Discussion started by: nehashine
3. Shell Programming and Scripting
I need to design a script which can do the following:
I have two files abc.txt and constant.hmtl
abc.txt contains some 5 string that I need to see if they exist in contants.html.
Constants.hmtl is a very large file around 800 lines.
I want to search all the strings present in file... (8 Replies)
Discussion started by: hemasid
4. UNIX for Dummies Questions & Answers
Hi i have a command in windows which captures the filenames with the same pattern and route it to another file.
for example filetest_20110921, filetest_20110922,filetest_20110923 etc
I would like to know the command in UNIX/LINUX for the same. The command which i am using in Windows is
... (12 Replies)
Discussion started by: mansurkhalil
5. 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
6. 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
7. 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
8. 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
9. 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
10. Shell Programming and Scripting
I have 5 files in a directory.
I am using sqlldr to get the contents of the above 5 files and store it in a temp table and update my original table using temp table.
for f in *emp*.txt
sqlldr... (3 Replies)
Discussion started by: pathanjalireddy