12-12-2011
Hi,
I tried..But i am not getting the desired output..
"yourlist" you mentioned , is it supposed to be my filename?
Thanks,
Jean
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have 5 files in a directory.
emp1_usage.txt
emp2_usage.txt
emp3_usage.txt
emp4_usage.txt
emp5_usage.txt
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
do
sqlldr... (3 Replies)
Discussion started by: pathanjalireddy
3 Replies
2. Shell Programming and Scripting
Hi all,
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
%cat file1
The= some= in
wish= born
<eof> .I want to display only those words containing = i.e The= , some=,wish=
... (5 Replies)
Discussion started by: sree_123
5 Replies
3. Shell Programming and Scripting
Hi All,
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.
#!bin/sh
# The pattern that user want to add to the files
echo "Enter the pattern of the redirect"
read value
# check if the user has... (1 Reply)
Discussion started by: Shazin
1 Replies
4. Shell Programming and Scripting
Hi Guys,
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
2 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I would like to search the pattern based on the date like "2010/08/15". I tried using / in the file giving /<<pattern>>. when i tried this it turns to /2010/+8, but not going to the pattern what ever i want.
This is how the data in the file.
INFO | jvm 1 | 2010/05/26 13:30:33... (5 Replies)
Discussion started by: venkatesht
5 Replies
6. 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
2
3
4
5and another one (f2) that contains 8|a
9|b
0|c
1|d
2|e
3|f
4|g
5|h
6|i
7|jAnd I'd like to get this:
1|d
2|e
3|f
4|g (5 Replies)
Discussion started by: tukuyomi
5 Replies
7. 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
12 Replies
8. 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
8 Replies
9. Shell Programming and Scripting
Hello,
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.
e.g.
$ cat file_lines_to_insert => contents are
abc
def
lkj
In another file final_file, before a... (6 Replies)
Discussion started by: nehashine
6 Replies
10. Shell Programming and Scripting
Hi experts,
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
abc303
xyz123
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 Replies
LEARN ABOUT DEBIAN
rapt-file
RAPT-FILE(1) RAPT-FILE(1)
NAME
rapt-file - APT package searching utility -- search remotely
SYNOPSIS
rapt-file [ options ] [ action ] [ pattern ]
DESCRIPTION
rapt-file is a command line tool for searching files in packages for the APT package management system. It differs from apt-file in that
it works with remote package indices, so it doesn't need to download full Contents files.
find Alias for search.
list List the contents of a package matching the pattern pattern. This action is very close to the dpkg -L command except the package
does not need to be installed or fetched.
search Search in which package a file is included. A list of all packages containing the pattern pattern is returned.
rapt-file will only search for filenames, not directory names. This is due to the format of the Contents files it searches.
show Alias for list.
OPTIONS
-a, --architecture architecture
Sets architecture to architecture. This option is useful if you search a package for a different architecture from the one installed
on your system. It determines how the $ARCH variable in sources.list is expanded (but it does not influence the search in any other
way).
-l, --package-only
Only display package name; do not display file names.
-v, --verbose
Run rapt-file in verbose mode.
-h, --help
Display a short help screen.
FILES
/etc/apt/sources.list
Locations to fetch package contents from.
/etc/apt/sources.list.d/
Directory with additional sources.list snippets
AUTHOR
rapt-file was written by Enrico Zini <enrico@debian.org>.
May 2012 RAPT-FILE(1)