07-01-2005
Quote:
Originally Posted by google
Please post the OS you are using. Also, please post the grep statement that you are attempting to run. Finally, define "a lot of output". What exactly are you trying to do?
hi,
I'm using windows XP that has a window's version of grep (GnuWin32) installed. What I'm doing is writing a perl script that will run the cleartool program from ClearCase, and pipe the results into a grep. Then I will output all of the results into an output file. But this error message comes up. I'm not certain if its due to a flaw with GnuWin32, or something I'm doing wrong with grep and perl. I apologize if this is a wrong post for this forum.
$test = `cleartool command_example | grep $ARGV[0]`;
print TEST_FILE "$test";
thanks,
gammaman
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
occasionally my server gives this error messages
"NOTICE:HTFS Out of inodes on HTFS dev hd (1/42)"
why ??
Alice. (3 Replies)
Discussion started by: alisev
3 Replies
2. UNIX for Dummies Questions & Answers
What does this means?
- ERROR OPENING FILE - KEY LENGHT MISMATCH (2 Replies)
Discussion started by: RDM00
2 Replies
3. Shell Programming and Scripting
I have a script which will take two file as the inputs and take the Value in file1 and search in file2 and give the output in Outputfile.
#!/bin/sh
#. ${HOME}/crossworlds/bin/CWSharedEnv.sh
FILE1=$1
FILE2=$2
for Var in $(cat $FILE1);do
echo $Var
grep -i "$Var" $FILE2
done > Outputfile
I... (2 Replies)
Discussion started by: SwapnaNaidu
2 Replies
4. Shell Programming and Scripting
Hello,
I'm writing a script that will automate the launch of some services on my AIX machine. However, some services are dependent on the successful startup of others. When I start these services manually, I usually just check a log file until I see a message that confirms a successful... (3 Replies)
Discussion started by: pallak7
3 Replies
5. UNIX for Advanced & Expert Users
My file creates an output log after which includes a few sql queries.
I segregate them into warnings and errors and then get a total count.
The errors' and warnings' lines always start with SQL{4} followed by the details of the error.
This is what im doing as o now...
errors=`grep -A 1 -E... (1 Reply)
Discussion started by: VGR
1 Replies
6. Shell Programming and Scripting
My file creates an output log after which includes a few sql queries.
I segregate them into warnings and errors and then get a total count.
The errors' and warnings' lines always start with SQL{4} followed by the details of the error.
This is what im doing as o now...
errors=`grep -A 1 -E... (11 Replies)
Discussion started by: VGR
11 Replies
7. Shell Programming and Scripting
Hi i'm new to the forum and was hoping someone could help me with the following query.
I do alot of testing and have hundreds of log files output. I have a script (someone else wrote) which finds all the passed and failed logs and puts a number in a column onto a webpage:
e.g:
Pass ... (4 Replies)
Discussion started by: defamer
4 Replies
8. Shell Programming and Scripting
I have prepare script to grep for outofmemory messages in the logs. I need help in modifying script. I have implemented small logic. The outofmemory messages form six logs will store in variables.
var1=`grep -i outofmemory $tomcat1logs | sed -n '$p'| sed -n -e "s/.*\(outofmemory\).*/\1/p"`... (6 Replies)
Discussion started by: coolguyamy
6 Replies
9. Shell Programming and Scripting
Hi
I am not able to grep a message in a log file -
For ex - Notice < > "Server1" is in deploying state under "Stut" domain
When i use gzcat logfile | grep -i " Notice < > "Server1" is in deploying state under "Stut" domain"
It is not returning any value.
Is it because of "Server1"... (1 Reply)
Discussion started by: honey26
1 Replies
10. Shell Programming and Scripting
I have ASCII files to parse that 48 hours old or more ; I can identify them like so
find . -name "FILE*TXT" -mtime +1 -exec ls -ltas '{}' ';'
Some files have a list of hardware errors (we test electronic components), some have none. If the file name has no errors, I still want to... (3 Replies)
Discussion started by: alan
3 Replies