01-16-2009
\z matches at the end of the string...
See here...
so as I read this, it will substitute the end of the string for Your New Line followed by carriage return on line 2
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Gurus,
sqlplus system @$1 0</opt/oracle/pwdfile
What would be the output of the above life....the password for the user "system" the user is stored in /opt/oracle/pwdfile
When i try to run the script it says password not found?
$1 0<
What is the meaning of the $1 and 0?
... (1 Reply)
Discussion started by: castlerock
1 Replies
2. Shell Programming and Scripting
Hi,
Could you please explain me the below statement -- phrase wise.
sed -e :a -e '$q;N;'$cnt',$D;ba' abc.txt > xyz.txt
if suppose $cnt contains value: 10
it copies last 9 lines of abc.txt to xyz.txt
why it is copying last 9 rather than 10.
and also what is ba and $D over there in... (4 Replies)
Discussion started by: subbukns
4 Replies
3. Shell Programming and Scripting
Hi All,
can you please explain me the meaning of this line--
BackupLocation="/inpass/abc"
Parent=$(expr $BackupLocation : '\(.*\)/.*' \| $BackupLocation)
when i ran this as a command also it did not show me anything so could not get the purpose of this line.
Explain it please. (3 Replies)
Discussion started by: namishtiwari
3 Replies
4. UNIX for Dummies Questions & Answers
can someone please explain the below sed command..
sed 's/\(*|\)\(.*\)/\2\1/' (6 Replies)
Discussion started by: raghu_shekar
6 Replies
5. Shell Programming and Scripting
sed '$!N; /^\(.*\)\n\1$/!P; D'
i found this file which removes duplicates irrespective for sorted or unsorted file. keep first occurance and remove the further occurances.
can any1 explain how this is working..
i need to remove duplicates following file. duplicate criteria is not the... (3 Replies)
Discussion started by: mukeshguliao
3 Replies
6. UNIX for Advanced & Expert Users
can anyone please tell me what does this expression means , i am under probation and need some explanation :)
$AUDIT_DIR -type f -mtime +$AUDIT_EXPIRE \ -exec rm {} > /dev/null 2>&1 \;
AUDIT_DIR="/var/log/"
AUDIT_EXPIRE='30'
Please use code tags! (4 Replies)
Discussion started by: semaan
4 Replies
7. Shell Programming and Scripting
Hi All
I ran a script in Linux.
In the script i have lines like
&& echo "Failed: Missing ${CM_ENV_FILE} \n" && return 1
. ${CM_ENV_FILE}
Where CM_ENV_FILE = /data/ds/dpr_ebicm_uat//etl/cm3_0/entities/BBME/parameters/cm.env
But its taking this path... (1 Reply)
Discussion started by: vee_789
1 Replies
8. UNIX for Dummies Questions & Answers
Hi everyone,
I am wondering if someone could please break down and explain the following sort command for me:
ls ${DEST_LOCATION}/${FILES} | sort -rt -k 4,4n | head -1
I have tried working it out using 'man sort', but on AIX there is not a great explanation of this function. I know that... (9 Replies)
Discussion started by: jimbojames
9 Replies
9. Shell Programming and Scripting
Will someone give me an explanation on how the sed command below works.
sed 's/.*//'
Thanks! (3 Replies)
Discussion started by: scj2012
3 Replies
10. UNIX for Beginners Questions & Answers
Hi Folks,
I am struggling to understand nawk command which was used by another developer.
Can you please explain what each character or string is doing here below:
if ; then (3 Replies)
Discussion started by: kirans.229
3 Replies
LEARN ABOUT DEBIAN
text::trac
Text::Trac(3pm) User Contributed Perl Documentation Text::Trac(3pm)
NAME
Text::Trac - Perl extension for formatting text with Trac Wiki Style.
VERSION
Version 0.12
SYNOPSIS
use Text::Trac;
my $parser = Text::Trac->new(
trac_url => 'http://trac.mizzy.org/public/',
disable_links => [ qw( changeset ticket ) ],
);
$parser->parse($text);
print $parser->html;
DESCRIPTION
Text::Trac parses text with Trac WikiFormatting and convert it to html format.
METHODS
new
Constructs Text::Trac object.
Available arguments are:
trac_url
Base URL for TracLinks.Default is /. You can specify each type of URL individually. Available URLs are:
trac_attachment_url
trac_changeset_url
trac_log_url
trac_milestone_url
trac_report_url
trac_source_url
trac_ticket_url
trac_wiki_url
disable_links
Specify TracLink types you want to disable. All types are enabled if you don't specify this option.
my $parser = Text::Trac->new(
disable_links => [ qw( changeset ticket ) ],
);
enable_links
Specify TracLink types you want to enable.Other types are disabled. You cannot use both disable_links and enable_links at once.
my $parser = Text::Trac->new(
enable_links => [ qw( changeset ticket ) ],
);
parse
Parses text and converts it to html format.
process
An alias of parse method.
html
Return converted html string.
SEE ALSO
Text::Hatena
Trac <http://www.edgewall.com/trac/>
Trac WikiFormatting <http://projects.edgewall.com/trac/wiki/WikiFormatting>
AUTHORS
Gosuke Miyashita, "<gosukenator at gmail.com>"
Hideaki Tanaka, "<drawn.boy at gmail.com)>"
BUGS
Please report any bugs or feature requests to "bug-text-trac at rt.cpan.org", or through the web interface at
<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Text-Trac>. I will be notified, and then you'll automatically be notified of progress on
your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Text::Trac
You can also look for information at:
o AnnoCPAN: Annotated CPAN documentation
<http://annocpan.org/dist/Text-Trac>
o CPAN Ratings
<http://cpanratings.perl.org/d/Text-Trac>
o RT: CPAN's request tracker
<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Text-Trac>
o Search CPAN
<http://search.cpan.org/dist/Text-Trac>
COPYRIGHT & LICENSE
Copyright 2006 Gosuke Miyashita, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.0 2009-03-08 Text::Trac(3pm)