06-29-2012
Thanks for the reply...
The files do contain the spaces...
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
What is wrong in this:
One file in /tmp is test.txt...file has three rows as follows:
YES I M HERE
12345
67890
Second file test2.txt:
status = `grep -i "YES I M HERE" /tmp/test.txt`
print "$status"
if we execute test2.txt It is returning 'status' not found (4 Replies)
Discussion started by: yale_work
4 Replies
2. Shell Programming and Scripting
Hi One to All
iam new this site,i hopei will get some response for my question.
My requirement is:i will pass a string(i.e Account number), it should search the corresponding log file in the path, after that it should copy the file in particular path, before that it should ask the path... (3 Replies)
Discussion started by: saic
3 Replies
3. Shell Programming and Scripting
Hi All
Iam new this forum,
just i want know someting about the files:
My req: i have file in that i want to search one string, if it is avaible then show the line ,otherwise it will show that the string is not available in the file,
for this i am useing if then else with out - q... (1 Reply)
Discussion started by: psi
1 Replies
4. Shell Programming and Scripting
Hi Everyone,
I am new to this forum and new to sed/awk programming too !!
I need to find particular string in file1(text file) and replace it with a value from another text file(file2) the file2 has only one line and the value to be replaced with is in the second column.
file 1:
(assert (=... (21 Replies)
Discussion started by: paramad
21 Replies
5. Linux
Hi all,
I have a question..
Here is my requirement..I have 500 files in a path say /a/b/c
I have some numbers in a file which are comma seperated...and I wanted to check if the numbers are present in the FileName in the path /a/b/c..if the number is there in the file that is fine..but if... (1 Reply)
Discussion started by: us_pokiri
1 Replies
6. Shell Programming and Scripting
Hi,
I want find multiple string in one file using find coomand.
And keeping it in one variable.grep is not working. (5 Replies)
Discussion started by: vivek1489
5 Replies
7. Shell Programming and Scripting
Dear all,
I need your help, I have file like this:
file1:23456
01910964830098775635
34567
01942809546554654323
67589
26546854368698023653
09778
58716868568576876878
08675
86178546154065406546
08573
54165843543054354305
.
.file2:
23456 25
34567 26
67589 27 (2 Replies)
Discussion started by: attila
2 Replies
8. Shell Programming and Scripting
Hi All,
I'm trying to insert a string into a file at a specific location.
I'd like to add a string after the parent::__construct(); in my file.
<?php if (! defined('BASEPATH')) exit('No direct script access allowed');
class MY_Controller extends CI_Controller {
function... (6 Replies)
Discussion started by: jjkilpatrick
6 Replies
9. Shell Programming and Scripting
Hello
I would like to get know how to do this:
I got a big file (about 1GB) and I need to find a string (for instance by grep )
and then find all records in this file based on a string.
Thanks for advice.
Martin (12 Replies)
Discussion started by: mape
12 Replies
10. Shell Programming and Scripting
Hello Forum.
I have a file called abc.sed with the following commands;
s/1/one/g
s/2/two/g
...
I also have a second file called abc.dat and would like to substitute all occurrences of "1 with one", "2 with two", etc and create a new file called abc_new.dat
sed -f abc.sed abc.dat >... (10 Replies)
Discussion started by: pchang
10 Replies
QER(8) System Manager's Manual QER(8)
NAME
qer, runq - queues management for spooled files
SYNOPSIS
qer root tag reply args
runq [ -ad ] root cmd
DESCRIPTION
Qer creates a control and a data file in a queue directory. The control file contents consist of the tag, reply, and args separated by
spaces. The data file contains the standard input to qer. The files are created in the directory root/user, where user is the contents of
/dev/user. Mktemp(2) is used to create the actual names of the control and data file.
Runq processes the files queued by qer. Without the -a option, runq processes all requests in the directory root/user, where user is the
contents of /dev/user. With the -a it processes all requests. Each request is processed by executing the command cmd with the contents of
the control file as its arguments, the contents of the data file as its standard input, and standard error appended to the error file
E.XXXXXX.
The action taken by runq depends on the return status of cmd. If cmd returns a null status, the processing is assumed successful and the
control, data, and error files are removed. If cmd returns an error status containing the word the files are left to be reprocessed at a
later time. For any other status, an error message is mailed to the requester and the files are removed. Runq uses the reply field in the
control file as a mail address to which to send an error notification. The notification contains the contents of the control file to iden-
tify the failed request.
To avoid reprocessing files too often, the following algorithm is used: a data file younger than one hour will not be processed if its
error file exists and was last modified within the preceding 10 minutes. A data file older than one hour will not be processed if its
error file exists and was last modified within the preceding hour.
The -d option causes debugging output on standard error describing the progress through the queues.
Runq is often called from cron(8) by an entry such as
0,10,20,30,40,50 * * * * kremvax
runq -a /mail/queue /mail/lib/remotemail
The entry must be a single line; it is folded here only so it fits on the page.
FILES
root/user
queue directory for user
root/user/D.XXXXXX
data file
root/user/C.XXXXXX
control file
root/user/E.XXXXXX
error file
SOURCE
/sys/src/cmd/upas/q
SEE ALSO
mail(1)
QER(8)