Hello there,
Is there anyway to make the tar utility print the contents of the files inside it (not list the files, but rather their contents) sequentially from the command line?
What I ultimately would like to do is to have a way of printing the contents of each file in the tar archive... (2 Replies)
I'm using a csh shell (or, that'd be my guess from the .cshrc file I see) and I'm looking to change my prompt.
There are about 10 other threads, I know, but this question is a little more specific. I want to know, is there a way to list the current directory from a certain level or directory... (6 Replies)
1) I ran myScript with 2 arguments, I meant to use 3
if I do r my, it will rerun it with the 2 arguments. is there a way I can do r my and add a third argument at the end?
2) say I did
myAcript.ksh 2 5 7 8
I realise my typo. is there an easy way to redo the command replacing A with S?
... (4 Replies)
Discussion started by: JamesByars
4 Replies
4. Post Here to Contact Site Administrators and Moderators
What do you think could we open new top topic with tips and tricks and to show to other users some tricks what do we know like dtrace , new virtual server , how to add new users etc.
This is only suggestion (1 Reply)
I found a decent guide of VI basic tricks. This guide does expect you to have a decent understanding of VI. It does not go over very much beginner related.
vi Manual (3 Replies)
Vim Tips and Tricks
Save and quit
:w => Save
:q => Exit as long as there have been no changes
:q! => Exit and ignore any changes
:wq => Save and Exit.
:x => Exit, saving changes
ZZ => Exit and save changes if any have been made
:10,20w filename => writes the... (34 Replies)
Discussion started by: ungalnanban
34 Replies
LEARN ABOUT CENTOS
xml::libxml::regexp
XML::LibXML::RegExp(3) User Contributed Perl Documentation XML::LibXML::RegExp(3)NAME
XML::LibXML::RegExp - XML::LibXML::RegExp - interface to libxml2 regular expressions
SYNOPSIS
use XML::LibXML;
my $compiled_re = XML::LibXML::RegExp->new('[0-9]{5}(-[0-9]{4})?');
if ($compiled_re->isDeterministic()) { ... }
if ($compiled_re->matches($string)) { ... }
$compiled_re = XML::LibXML::RegExp->new( $regexp_str );
$bool = $compiled_re->matches($string);
$bool = $compiled_re->isDeterministic();
DESCRIPTION
This is a perl interface to libxml2's implementation of regular expressions, which are used e.g. for validation of XML Schema simple types
(pattern facet).
new()
$compiled_re = XML::LibXML::RegExp->new( $regexp_str );
The constructor takes a string containing a regular expression and returns a compiled regexp object.
matches($string)
$bool = $compiled_re->matches($string);
Given a string value, returns a true value if the value is matched by the compiled regular expression.
isDeterministic()
$bool = $compiled_re->isDeterministic();
Returns a true value if the regular expression is deterministic; returns false otherwise. (See the definition of determinism in the XML
spec (<http://www.w3.org/TR/REC-xml/#determinism>))
AUTHORS
Matt Sergeant, Christian Glahn, Petr Pajas
VERSION
2.0018
COPYRIGHT
2001-2007, AxKit.com Ltd.
2002-2006, Christian Glahn.
2006-2009, Petr Pajas.
perl v5.16.3 2013-05-13 XML::LibXML::RegExp(3)