Sponsored Content
Top Forums Shell Programming and Scripting Pattern searching and replace Post 302356215 by edidataguy on Friday 25th of September 2009 01:32:52 AM
Old 09-25-2009
Code:
sed 's/.*PSE\([[:digit:]]*\).*/\1/' file


Last edited by edidataguy; 09-25-2009 at 02:47 AM..
 

10 More Discussions You Might Find Interesting

1. Programming

pattern searching using C

i think grep can only find char in files matching a pattern without any wildcards like ? correct? It works with * but not ?. how can i write a small c program to find words in a file, like a list, that matches a pattern like ma?y, b??con, etc if grep doesn't understand ? in a pattern search. if... (1 Reply)
Discussion started by: giannicello
1 Replies

2. Shell Programming and Scripting

Pattern searching pattern in c files

I have a problem in searching a specific pattern in c files. My requirement: I have to find all the division operator in all cfiles. The problem is, the multi line comments and single line comments will also have forward slash in it. Even after avoiding these comments also, if both... (6 Replies)
Discussion started by: murthybptl
6 Replies

3. Shell Programming and Scripting

searching for a pattern

can anybode tell me ? I want to search for a pattern present in a whole directory and subdirectories's files containg " crat" I tried grep -r "crat" */* ; is it right ? (3 Replies)
Discussion started by: pranabrana
3 Replies

4. Shell Programming and Scripting

Searching a pattern in file and deleting th ewhole line containing the pattern

Hi All, Please can someone assist in the script I have made that searches a pattern in a file and delete the whole line containing the pattern. #!bin/sh # The pattern that user want to add to the files echo "Enter the pattern of the redirect" read value # check if the user has... (1 Reply)
Discussion started by: Shazin
1 Replies

5. Shell Programming and Scripting

Searching for a pattern

How do I search for a pattern - N/A in a particular column using awk? (11 Replies)
Discussion started by: rabiu
11 Replies

6. UNIX for Dummies Questions & Answers

Pattern searching

Hi, I need small help from you people. In a directory there are around 150 odd files and few them contain the word "TRACK" and few are not. How can I find out the the list of those files which doesn't contain the word "TRACK"? Thanks, Siba (4 Replies)
Discussion started by: siba.s.nayak
4 Replies

7. UNIX for Dummies Questions & Answers

searching pattern in VI

in my file i have somthing likre kpk_12 kpk_1 kpk_1.tcl kpk_3.tcl kpk kpk kpk i want search only kpk i am using this cmd /kpk ...results it is showing all . any cmd is ther other then this to search exactword in this example kpk it shoulsnot show kpk_* etc Thanks in Advance ... (2 Replies)
Discussion started by: prakumar
2 Replies

8. Shell Programming and Scripting

pattern searching

Hi, Can you please help me out here? I am trying develop a search pattern to extract certain words from the two strings below. I want to extract ericsson_msc_live from the 2 strings and then the date, which is a part of the filename just before the .jar extension. ... (19 Replies)
Discussion started by: danish0909
19 Replies

9. Shell Programming and Scripting

[SOLVED] Replace a string in nextline after searching a pattern

Hi, I have a requirement where I need to replace a string in a line and this line will be identified by search criteria on previous line: E.g.: I have an xml file and Contents as below: <Root> <NameValue> <name>Global/Text/Data</name> <value>This is valid... (14 Replies)
Discussion started by: mailing2vamsi
14 Replies

10. Shell Programming and Scripting

Searching for a pattern and extracting records related to that pattern

Hi there, Looking forward to your advice for the below: I have a file which contains 2 paragraphs related to a particular pattern. I have to search for those paragraphs from a log file and then print a particular line from those paragraphs. Sample: I have one file with the fixed... (3 Replies)
Discussion started by: danish0909
3 Replies
Pango::Renderer(3)					User Contributed Perl Documentation					Pango::Renderer(3)

NAME
Pango::Renderer HIERARCHY
Glib::Object +----Pango::Renderer METHODS
$renderer->activate Since: pango 1.8 color or undef = $renderer->get_color ($part) o $part (Pango::RenderPart) Since: pango 1.8 $renderer->set_color ($part, $color) o $part (Pango::RenderPart) o $color (Pango::Color or undef) Since: pango 1.8 $renderer->deactivate Since: pango 1.8 $renderer->draw_error_underline ($x, $y, $width, $height) o $x (integer) o $y (integer) o $width (integer) o $height (integer) Since: pango 1.8 $renderer->draw_glyph ($font, $glyph, $x, $y) o $font (Pango::Font) o $glyph (integer) o $x (double) o $y (double) Since: pango 1.8 $renderer->draw_layout ($layout, $x, $y) o $layout (Pango::Layout) o $x (integer) o $y (integer) Since: pango 1.8 $renderer->draw_layout_line ($line, $x, $y) o $line (Pango::LayoutLine) o $x (integer) o $y (integer) Since: pango 1.8 $renderer->draw_rectangle ($part, $x, $y, $width, $height) o $part (Pango::RenderPart) o $x (integer) o $y (integer) o $width (integer) o $height (integer) Since: pango 1.8 $renderer->draw_trapezoid ($part, $y1_, $x11, $x21, $y2, $x12, $x22) o $part (Pango::RenderPart) o $y1_ (double) o $x11 (double) o $x21 (double) o $y2 (double) o $x12 (double) o $x22 (double) Since: pango 1.8 layout = $renderer->get_layout Since: pango 1.20 layoutline = $renderer->get_layout_line Since: pango 1.20 matrix or undef = $renderer->get_matrix Since: pango 1.8 $renderer->set_matrix ($matrix) o $matrix (Pango::Matrix or undef) Since: pango 1.8 $renderer->part_changed ($part) o $part (Pango::RenderPart) Since: pango 1.8 ENUMS AND FLAGS
enum Pango::RenderPart o 'foreground' / 'PANGO_RENDER_PART_FOREGROUND' o 'background' / 'PANGO_RENDER_PART_BACKGROUND' o 'underline' / 'PANGO_RENDER_PART_UNDERLINE' o 'strikethrough' / 'PANGO_RENDER_PART_STRIKETHROUGH' SEE ALSO
Pango, Glib::Object COPYRIGHT
Copyright (C) 2003-2009 by the gtk2-perl team. This software is licensed under the LGPL. See Pango for a full notice. perl v5.12.1 2010-07-05 Pango::Renderer(3)
All times are GMT -4. The time now is 01:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy