03-06-2002
Thanks for your help folks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Can someone please help me with searching a string during a specific time frame. Below is the format of the time from my log file.
"GET /AAM2009_wherewereheaded.wmv HTTP/1.1" 200 52307085
The search string I need is "AAM2009_wherewereheaded.wmv"
I need to search the number of... (1 Reply)
Discussion started by: tadi18
1 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I am on an AIX Unix box and I am trying to search for a string in between specified lines of code when I vi a file. I can use the '/string' to search for the string through out the file, but can we only search in between specific lines.
I can use the below sed command to search for the... (8 Replies)
Discussion started by: coolavi
8 Replies
3. Shell Programming and Scripting
Hi,
I have following requirement. Pls suggest.
To search a string in a file which is combination of character and number(always 9 digit, but numeric). if found then caputure the exit return code as 0 else 1 , if 0 then next job can be triggerd. If exit code is 1, should return a failure... (10 Replies)
Discussion started by: zooby
10 Replies
4. UNIX for Dummies Questions & Answers
Hi Guys,
I want to search the content of all the files (of a particular type like .txt)
in a directory for a specific string pattern. Can anyone help me?
Thanks (7 Replies)
Discussion started by: mwrg
7 Replies
5. Shell Programming and Scripting
Hi,
Our input xml looks like:
<doc>
<str name="account_id">1111</str>
<str name="prd_id">DHEP155EK</str>
</doc>
- <doc>
<str name="account_id">6666</str>
<str name="prd_id">394531662</str>
</doc>
- <doc>
<str name="account_id">6666</str>
<str... (1 Reply)
Discussion started by: Jassz
1 Replies
6. UNIX for Dummies Questions & Answers
Dear All,
New to Linux/Unix OS, my Linux version is 2010 x86_64 x86_64 x86_64 GNU/Linux
As titled, I wonder if you can help to provide a solution to find and change an specific string in a file
The file include a lots of data in following configuration but might be various in... (3 Replies)
Discussion started by: axel
3 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I have log file which rolls out every second which is as this.
HttpGenRequest - -<!--OXi dbPublish--> <created="2014-03-24 23:45:37" lastMsgId="" requestTime="0.0333"> <response request="getOutcomeDetails" code="114" message="Request found no matching data" debug="" provider="undefined"/>... (3 Replies)
Discussion started by: karthikprakash
3 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I have a log file containing below data
12/3/14 12:43:59 AM WIT |Performance threshold: elapsed time = 3152... (5 Replies)
Discussion started by: csm231
5 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I have logfile like this..
=== 2014-02-09 15:46:59,936 INFO RequestContext - URL: '/eyisp/sc/skins/EY/images/pickers/comboBoxPicker_Over.png', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko': Unsupported with Accept-Encoding header
=== 2015-02-09... (8 Replies)
Discussion started by: kishk
8 Replies
10. UNIX for Beginners Questions & Answers
Lets say I have a massive directory which is filled with other directories all filled with different c++ scripts and I want a listing of all the scripts that contain the string: "this string". Is there a way to use a grep search for that? I tried:
grep -lr "this string" *
but I do not... (3 Replies)
Discussion started by: Circuits
3 Replies
LEARN ABOUT DEBIAN
string::escape
Escape(3pm) User Contributed Perl Documentation Escape(3pm)
NAME
String::Escape - Backslash escapes, quoted phrase, word elision, etc.
SYNOPSIS
This module provides a flexible calling interface to some frequently-performed string conversion functions, including applying and removing
backslash escapes like
and , wrapping and removing double-quotes, and truncating to fit within a desired length.
use String::Escape qw( printable unprintable );
# Convert control, high-bit chars to
or xxx escapes
$output = printable($value);
# Convert escape sequences back to original chars
$value = unprintable($input);
use String::Escape qw( elide );
# Shorten strings to fit, if necessary
foreach (@_) { print elide( $_, 79 ) . "
"; }
use String::Escape qw( string2list list2string );
# Pack and unpack simple lists by quoting each item
$list = list2string( @list );
@list = string2list( $list );
use String::Escape qw( escape );
# Defer selection of escaping routines until runtime
$escape_name = $use_quotes ? 'qprintable' : 'printable';
@escaped = escape($escape_name, @values);
INTERFACE
All of the public functions described below are available as optional exports.
You can either import the specific functions you want, or import only the "escape()" function and pass it the names of the functions to
invoke.
Quoting
Each of these functions takes a single simple scalar argument and returns its escaped (or unescaped) equivalent.
quote($value) : $escaped
Add double quote characters to each end of the string.
unquote($value) : $escaped
If the string both begins and ends with double quote characters, they are removed, otherwise the string is returned unchanged.
quote_non_words($value) : $escaped
As above, but only quotes empty, punctuated, and multiword values; simple values consisting of alphanumerics without special characters
are not quoted.
singlequote($value) : $escaped
Add single quote characters to each end of the string.
unsinglequote($value) : $escaped
If the string both begins and ends with single quote characters, they are removed, otherwise the string is returned unchanged.
Backslash Escaping Functions
Each of these functions takes a single simple scalar argument and returns its escaped (or unescaped) equivalent.
These functions recognize common whitespace sequences "
", "
", and " ", as well as hex escapes "x4F" and ocatal "