I'm trying to use the following command to do a batch find and replace in all commonly named files through a file hierarchy
find . -name 'file' |xargs perl -pi -e 's/find/replace/g'
which works fine except for a substitution involving parenthesis.
As a specific example I'm trying to sub... (3 Replies)
Let's say I'm trying to match potentially multiple sets of parentheses. Is there a way in a regular expression to force a match of closing parentheses specifically in the number of the opening parentheses?
For example, if the string is "((foo bar))", I want to be able to say "match any number of... (7 Replies)
find . -type f -name "*.sql" -print|xargs perl -i -pe 's/pattern/replaced/g'
this is simple logic to find and replace in multiple files & folders
Hope this helps.
Thanks
Zaheer (0 Replies)
Hi All,
I have rootdg encapsulated within Veritas Volume Manager.
/# vxprint -vg rootdg
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
v rootvol root ENABLED 24585216 - ACTIVE - -
v swapvol swap ENABLED 20484288 -... (3 Replies)
Hi,
Is the below possible (SHELL = tcsh)?
-- I want to write an 'alias' something like this -
alias set_my_work "setenv SOME_VAR;tcsh -i;source work_script.cshrc"
The intention is to run this alias and enter a child shell, at the same time ensuring that the work_script.cshrc is source-ed.... (0 Replies)
Trying to execute commands for different Unix user with that user's environment variable context without fully switching as that user using sudo && su capabilities.
Hoping this would help with security and not having to waste time switching between 10 different app users on same server.
I do... (6 Replies)
Hello folks!
While "sedding" about again, I ran into this little conundrum du jour:#!/usr/bin/perl
use strict;
use warnings;
use diagnostics;
@ARGV = ('./afile.dat', './*.txt');
$^I = '';
while (<>)
{
s/Twinkies/Dinner/g;
print;
}When run, perl complains,...but, of... (1 Reply)
Hello folks!
While "sedding" about again, I ran into this little conundrum du jour:#!/usr/bin/perl
use strict;
use warnings;
use diagnostics;
@ARGV = ('./afile.dat', './*.txt');
$^I = '';
while (<>)
{
s/Twinkies/Dinner/g;
print;
}When run, perl complains,...but, of... (2 Replies)
I wrote this code, questions follow
#! /bin/bash -f
# Purpose - to show how if syntax is used within an awk
clear;
ls -l;
echo "This will print out the first two columns of the inputted file in this directory";
echo "Enter filename found in this directory";
read input;
... (11 Replies)
Discussion started by: Seth
11 Replies
LEARN ABOUT SUSE
pango::cairo
Pango::Cairo(3) User Contributed Perl Documentation Pango::Cairo(3)NAME
Pango::Cairo
METHODS
layout = Pango::Cairo::create_layout ($cr)
o $cr (Cairo::Context)
Pango::Cairo::error_underline_path ($cr, $x, $y, $width, $height)
o $cr (Cairo::Context)
o $x (double)
o $y (double)
o $width (double)
o $height (double)
Since: pango 1.14
Pango::Cairo::glyph_string_path ($cr, $font, $glyphs)
o $cr (Cairo::Context)
o $font (Pango::Font)
o $glyphs (Pango::GlyphString)
Pango::Cairo::layout_line_path ($cr, $line)
o $cr (Cairo::Context)
o $line (Pango::LayoutLine)
Pango::Cairo::layout_path ($cr, $layout)
o $cr (Cairo::Context)
o $layout (Pango::Layout)
Pango::Cairo::show_error_underline ($cr, $x, $y, $width, $height)
o $cr (Cairo::Context)
o $x (double)
o $y (double)
o $width (double)
o $height (double)
Since: pango 1.14
Pango::Cairo::show_glyph_string ($cr, $font, $glyphs)
o $cr (Cairo::Context)
o $font (Pango::Font)
o $glyphs (Pango::GlyphString)
Pango::Cairo::show_layout ($cr, $layout)
o $cr (Cairo::Context)
o $layout (Pango::Layout)
Pango::Cairo::show_layout_line ($cr, $line)
o $cr (Cairo::Context)
o $line (Pango::LayoutLine)
Pango::Cairo::update_context ($cr, $context)
o $cr (Cairo::Context)
o $context (Pango::Context)
Pango::Cairo::update_layout ($cr, $layout)
o $cr (Cairo::Context)
o $layout (Pango::Layout)
SEE ALSO
Pango
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::Cairo(3)