Search Results

Search: Posts Made By: Kristin_in_CO
6,011
Posted By Kristin_in_CO
Sorry for leaving that out methyl, it's Solaris...
Sorry for leaving that out methyl, it's Solaris Sparc 5.10.

The server I've been testing on has logs that were copied over and all have the same modified date. I just discovered that only some...
6,011
Posted By Kristin_in_CO
I'm on Solaris (said that in the first post). I...
I'm on Solaris (said that in the first post). I don't know much about the hardware other than it's on slower disks than production. I can find out more if needed. It takes about 7-8 minutes for one...
6,011
Posted By Kristin_in_CO
Jim - I got this error: % 10 : syntax error ...
Jim - I got this error:
% 10 : syntax error
Rdc - Thanks that worked this time, although it runs in the same amount of time as the other solution

Chubler - Thanks, but we don't have that...
6,011
Posted By Kristin_in_CO
Thanks for your responses! rdcwayx - I got...
Thanks for your responses!

rdcwayx - I got the same error:
/usr/bin/ls: arg list too long

methyl - I got this to work, however it runs very slow. Is there a way this would work as a one liner...
6,011
Posted By Kristin_in_CO
arg list too long error
Hello,

I'm trying to search through 30,000 files in 1 directory, and am getting the "arg list too long" error. I've searched this forum and have been playing around with xargs and can't get that...
1,913
Posted By Kristin_in_CO
I was able to find someone to help me on this....
I was able to find someone to help me on this. The correct code is:

perl -ne '/USERID:\s"(.+?)"/ ? print "$1\n" : print "\n"' datafile.log > userid.log
1,913
Posted By Kristin_in_CO
So I ran my script with the suggested perl...
So I ran my script with the suggested perl statement inside the while loop, and even though it completed successfully, it took over 6 hours to run reading line by line in a 90MB log file. I've...
1,913
Posted By Kristin_in_CO
I ended up using what pludi suggested and it...
I ended up using what pludi suggested and it works perfectly. Thanks for your help!

cat $<logfile> | while read a
do
userid=`echo $a | perl -ne '/USERID:\s"(.+?)"/; print $1, "\n"'`
#do more...
1,913
Posted By Kristin_in_CO
I should have added that I'm going to be doing...
I should have added that I'm going to be doing this for about 10 different strings per line. The code I have so far is:
cat $<logfile> | while read a
do
variable1=`echo $a | grep "USERID:" ???? `...
1,913
Posted By Kristin_in_CO
search a file for specific text
Hello everyone,

I'm a newbie here. I'm working on a ksh script on Solaris 5.10 and have a question. I'm trying to search for a word line by line in a log file, and grab the text right after it...
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 12:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy