04-30-2009
Quote:
Originally Posted by
PrasannaKS
no,
I do have brackets before the pattern
That's what I mean, have you tried the command?
Last edited by Franklin52; 04-30-2009 at 06:36 PM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all
i have 2 input files
1st file is
N1 | N2|N3|N4|N5|N6|N7|N8|N9
4041491000|245160|1|0|0|1|0|0|0
4041401505|152178|1|1|1|1|0|0|0
4041450004|014052|1|1|1|1|0|0|0
4041450005|580916|1|1|1|1|0|0|0
4041491000|230990|1|0|1|1|0|0|0
4041460001|338317|1|1|1|1|0|0|0
2nd file
N1 |... (8 Replies)
Discussion started by: dodasajan
8 Replies
2. Shell Programming and Scripting
Hi,
I have a string in log file from that i need to pick the username.
the string is like this--
pid 2172 tid 3124: 160: 10110847: userName :
pid 2172 tid 3124: 160: 10110847: userName :
pid 2172 tid 3124: 160: 10110847: userName :
pid 2172 tid 3124: 160: 10110847: userName :
pid... (5 Replies)
Discussion started by: namishtiwari
5 Replies
3. Shell Programming and Scripting
Hi experts
I want the proper argument to the grep command so that I need to skip the first few lines(say first 10 lines) and print all the remaining instances of the grep output.
I tried to use grep -m 10 "search text" file*. But this gives the first 10 instances(lines) of the search string.... (7 Replies)
Discussion started by: ks_reddy
7 Replies
4. Shell Programming and Scripting
Below script perfectly works, giving below mail output. BUT, I want to make the script mail only if there are any D-Defined/T-Transition/B-Broken State WPARs and also to copy the output generated during monitoring to a temporary log file, which gets cleaned up every week. Need suggestions.
... (4 Replies)
Discussion started by: aix_admin_007
4 Replies
5. Shell Programming and Scripting
Hi
Iam running below script on one text file.
usr/xpg4/bin/awk 'BEGIN {print "IP HOST_NAME SUB "}
/IP IS/ {IP=$3}
/local/ {HOST=$1}
/PPPoE/ {SUB=$3 ;print IP, HOST, SUB}
' /Scripts/sub_report_$FILE>/Scripts/sub_final_report_.txt
the output is coming as below
IPHOST_NAME SUB ... (16 Replies)
Discussion started by: surender reddy
16 Replies
6. Shell Programming and Scripting
I need a Korn shell script which does the folllowing:-
If there is one "|" (pipe) delimited file so, the script should check the 5th field to be blank or not. if it is a blank tht entire line of the file should be redirected to another file. if the 5th field is not blank it should pass that.
... (4 Replies)
Discussion started by: Juhi Kashyap
4 Replies
7. Shell Programming and Scripting
i have a o/p from find command that needs to be formatted
currently when i'm running
find . -name "v.info"
it is giving below o/p
/o/a/b/c/v.info
/o/a/b/c/d/v.info
/o/aa/bb/cc/v.info
/o/aa/bb/cc/dd/v.info
my requirement is if v.info is coming under sub-directories it shul be... (15 Replies)
Discussion started by: nikhil jain
15 Replies
8. SuSE
Hi,
I am using below code snippet to echo/display the files found
(matching a pattern from searchstring.out file) and the corresponding owner.
while read j
do
echo "Pattern to search is:- $j"
find / -name "*$j*" |\
while read k
do
echo "File found is:- $k"
owner=$(ls... (9 Replies)
Discussion started by: Vipin Batra
9 Replies
9. Shell Programming and Scripting
Hi Experts,
Could you pls help with below query
I have written below script to capture disk utilization and then send the output on mail. But getting unformated output on mail
#!/bin/bash
echo "Hi Sur,">dfoutput.csv
printf '\n' >>dfoutput.csv
echo "Please find BAYSQUAR2 filesystem... (4 Replies)
Discussion started by: as7951
4 Replies
10. UNIX for Beginners Questions & Answers
dump file
2020-01-05 & 234135 ossuser 4 CACLP;
2020-01-05 & 234207 ossuser 3 CACLP;
2020-01-05 & 234307 ossuser 1002 CACLP;
2020-01-05 & 234427 ossuser 0 CACLP;
2020-01-05 & 234429 ossuser 1 CACLP;
Command used awk ... (1 Reply)
Discussion started by: Sagar Singh
1 Replies
LEARN ABOUT DEBIAN
catalyst::engine::psgi
Catalyst::Engine::PSGI(3pm) User Contributed Perl Documentation Catalyst::Engine::PSGI(3pm)
NAME
Catalyst::Engine::PSGI - PSGI engine for Catalyst
SYNOPSIS
# app.psgi
use strict;
use MyApp;
MyApp->setup_engine('PSGI');
my $app = sub { MyApp->run(@_) };
DESCRIPTION
Catalyst::Engine::PSGI is a Catalyst Engine that adapts Catalyst into the PSGI gateway protocol.
COMPATIBILITY
o Currently this engine works with Catalyst 5.8 (Catamoose) or newer.
o Your application is supposed to work with any PSGI servers without any code modifications, but if your application uses
"$c->res->write" to do streaming write, this engine will buffer the output until your app finishes.
To do real streaming with this engine, you should implement an IO::Handle-like object that responds to "getline" method that returns
chunk or undef when done, and set that object to "$c->res->body".
Alternatively, it is possible to set the body to a code reference, which will be used to stream content as documented in the PSGI spec.
o When your application runs behind the frontend proxy like nginx or lighttpd, this Catalyst engine doesn't automatically recognize the
incoming headers like "X-Forwarded-For", because respecting these headers by default causes a potential security issue.
You have to enable Plack::Middleware::ReverseProxy or Plack::Middleware::ForwardedHeaders to automatically promote those forwarded
headers into "REMOTE_ADDR" hence IP address of the request.
ReverseProxy middleware is pretty simple and has no configuration while ForwardedHeaders allows you to configure which upstream host to
trust, etc.
AUTHOR
Tatsuhiko Miyagawa <miyagawa@bulknews.net>
Most of the code is taken and modified from Catalyst::Engine::CGI.
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
Catalyst::Engine PSGI Plack
perl v5.12.3 2011-06-11 Catalyst::Engine::PSGI(3pm)