Search Results

Search: Posts Made By: butterfly20
21,041
Posted By butterfly20
Yes...found a way. open (STDOUT, "| tee -ai...
Yes...found a way.

open (STDOUT, "| tee -ai log.txt");
print "blah blah";
close (STDOUT);

This works perfectly. Thanks ghostdog74 :)
21,041
Posted By butterfly20
Perl :How to print the o/p of a Perl script on console and redirecting same in log file @ same time.
How can i print the output of a perl script on a unix console and redirect the same in a log file under same directory simultaneously ?

Like in Shell script, we use tee, is there anything in Perl...
3,963
Posted By butterfly20
Thanks Klashxx :) Tht worked perfectly. Thnx...
Thanks Klashxx :)
Tht worked perfectly. Thnx again.
3,963
Posted By butterfly20
But i can't skip it with escape character as the...
But i can't skip it with escape character as the string to be matched is entered by the user and if it has special characters then the problem comes..i dont knw the user i/p in advance....let me know...
3,963
Posted By butterfly20
Perl: Regex, string matching
Hi,

I've a logfile which i need to parse and get the logs depending upon the user input. here, i'm providing an option to enter the string which can be matched with the log entries.

e.g. one...
10,178
Posted By butterfly20
Thanks freakygs :) I got it...much...
Thanks freakygs :)
I got it...much appreciated. :)

---------- Post updated at 06:23 AM ---------- Previous update was at 06:22 AM ----------






Thanks Anurag....it worked :)
Plz...
10,178
Posted By butterfly20
Hi Anurag, thnx for ur prompt...
Hi Anurag,
thnx for ur prompt response...meanwhile i found one more sed command as below -
cat testFile|cut -d'\' -f2- | sed 's/EMEA//g;s/\\//g;s/,//g'

which works fine too but trouble is i...
10,178
Posted By butterfly20
Korn Shell for pattern matching and extracting
Guys, i'm new to shell scripting. Here's what i need.
I need a shell script which would read a file containing only 1 line which never changes.
File containts -
SQL_Mgd_Svc_ELONMCL54496...
Showing results 1 to 8 of 8

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