Sponsored Content
Full Discussion: Grep Options
Top Forums UNIX for Dummies Questions & Answers Grep Options Post 302652695 by 47shailesh on Thursday 7th of June 2012 02:09:55 PM
Old 06-07-2012
Code:
if grep -q 627857272120951075 abc.log
then
 echo "present"
else 
 echo "no joy"
fi

 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

cp options

Hello again, Is there an option for the cp command to overwrite existing files in the destination directory? Cheers Rob (3 Replies)
Discussion started by: milage
3 Replies

2. AIX

no options

Hi All, I have a situation here that's very fun... I have a system with AIX and iPlanet (sunOne) installed, when occurs an unknown event on the network the WebServer shows a thousand of CLOSE_WAIT connections and this number grows and grows until the webserver crashs. I read some documents... (2 Replies)
Discussion started by: nascimento.rp
2 Replies

3. Shell Programming and Scripting

Grep options

Hi Team, I have a list of 12000 files and i am need to search for the names of the file which has long version numbers (say more than 5 decimals).. With the below instance u~15.1.4.1.2.1.5.1.5.1.24.1.24.1.5 lk-l~22.1.3.1.9.1.7.1.24.1.23 YDFVALLN.CPY~1 YEUPCASE.CPY~1 YFPRSTID.CPY~1... (2 Replies)
Discussion started by: ganga.dharan
2 Replies

4. UNIX for Advanced & Expert Users

Problem with grep command options in Sunsolaris

Hi Experts I need the following output from grep command of Sunsolaris on a set of input files. Output:........ 1st search string from file1 2nd search string from file1 3rd search string from file1 1st search string from file2 2nd search string from file2 3rd search string from... (3 Replies)
Discussion started by: ks_reddy
3 Replies

5. Ubuntu

Kernel boot options removed by fault, no boot options

Hello Everyone, First of all, I highly appreciate all Linux forum members and whole Linux community. http://forums.linuxmint.com/images/smilies/icon_wink.gif. I wish you the best for all of you ! I will try to be short and concise: I am using Linux Mint 10 for 2 months on 2 ws, and all went... (3 Replies)
Discussion started by: cdt
3 Replies

6. UNIX for Dummies Questions & Answers

Exploring the grep options

Hi Folks, I have one query I have a log file to which I reach to putty and I open that particular log file in vi editor and search through /pattern, Suppose I have to search <ProgramId>627857272120951075</ProgramId> Then I have to open abc.log cd /var/log/ ls -ltr vi abc.log... (4 Replies)
Discussion started by: SankalpS
4 Replies

7. Solaris

grep options in solaris

Hi, I am interested in knowing the grep optiojs availabel in solaris box, to get the grep results in one line from the log files. only the matched values need to be displayed. I need ot find the values in a message where the search values will be in separate lines of the input. like:... (10 Replies)
Discussion started by: sudha143
10 Replies

8. Shell Programming and Scripting

Inconsistent `ps -eaf -o args | grep -i sfs_pcard_load_file.ksh | grep -v grep | wc -l`

i have this line of code that looks for the same file if it is currently running and returns the count. `ps -eaf -o args | grep -i sfs_pcard_load_file.ksh | grep -v grep | wc -l` basically it is assigned to a variable ISRUNNING=`ps -eaf -o args | grep -i sfs_pcard_load_file.ksh |... (6 Replies)
Discussion started by: wtolentino
6 Replies
HTML::Template::Compiled::Utils(3pm)			User Contributed Perl Documentation		      HTML::Template::Compiled::Utils(3pm)

NAME
HTML::Template::Compiled::Utils - Utility functions for HTML::Template::Compiled SYNOPSIS
# import log() and stack() use HTML::Template::Compiled::Utils qw(:log); # import the escapign functions use HTML::Template::Compiled::Utils qw(:escape); DEBUGGING FUNCTIONS
stack $self->stack; For HTML::Template:Compiled developers, prints a stack trace to STDERR. md5 md5($text) If Digest::MD5 is installed, returns the md5_base64 for $text, otherwise returns the empty string. log $self->log(@msg) For HTML::Template::Compiled developers, print log from @msg to STDERR. ESCAPING FUNCTIONS
escape_html my $escaped_html = escape_html($raw_html); HTML-escapes the input string (only &, ", single quotes, "<" and ""> and returns it; escape_html_all my $escaped_html = escape_html_all($raw_html); HTML-escapes the input string (with HTML::Entities) and returns it; escape_uri my $escaped_uri = escape_uri($raw_uri); URI-escapes the input string and returns it; escape_js my $escaped_js = escape_js($raw_js); JavaScript-escapes the input string and returns it; escape_ijson my $escaped_js = escape_ijson($raw_js); JavaScript-escapes the input string except for the apostrophe and returns it, so it can be used within a JSON element. perl v5.14.2 2012-05-26 HTML::Template::Compiled::Utils(3pm)
All times are GMT -4. The time now is 11:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy