8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi all,
trying this using shell/bash with sed/awk/grep
I have two files, one containing one column, the other containing multiple columns (comma delimited).
file1.txt
abc12345
def12345
ghi54321
...
file2.txt
abc1,text1,texta
abc,text2,textb
def123,text3,textc
gh,text4,textd... (6 Replies)
Discussion started by: shogun1970
6 Replies
2. Shell Programming and Scripting
I am trying to use awk skip each line with a ## or # and check each line after for STB= and if that value in greater than or = to 0.8, then at the end of line the text "STRAND BIAS" is written in else "GOOD".
So in the file of 4 entries attached.
awk tried:
awk NR > "##"' "#" -F"STB="... (6 Replies)
Discussion started by: cmccabe
6 Replies
3. UNIX for Dummies Questions & Answers
I need to search a string for some specific text which is no big deal using grep. My problem is when the search fails to find the text. I need to add text like "na" when my search does not match.
I have tried this command but it does not work when I put the command in a loop in a bash script:
... (12 Replies)
Discussion started by: jojojmac5
12 Replies
4. Shell Programming and Scripting
Hi,
I have a huge file that has data something like shown below:
huge_file.txt
start regexp
Name=Name1
Title=Analyst
Address=Address1
Department=Finance
end regexp
some text
some text
start regexp
Name=Name2
Title=Controller
Address=Address2
Department=Finance
end regexp (7 Replies)
Discussion started by: r3d3
7 Replies
5. Shell Programming and Scripting
I wrote a Bash script which checks to see if a text string exists on a web page and then sends me an email if it does (or does not e.g. "Out of stock"). I run it from my crontab, it's quite handy from time to time and I've been using it for a few years now.
The script uses wget to download an... (6 Replies)
Discussion started by: gencon
6 Replies
6. UNIX for Dummies Questions & Answers
So I am trying to use the .ce 3 command to center 3 lines in my text, but I am getting an execute permission denied. I made rwx capabilites for all users too. Any idea why I am getting this error? (15 Replies)
Discussion started by: itech4814
15 Replies
7. Shell Programming and Scripting
Hello, people,
I have to make a tool that is centering the given text by the screen width or given parameter.
I have no idea how to write this script. Can anyone make it for me ir at least help? (4 Replies)
Discussion started by: LimitedWings
4 Replies
8. Shell Programming and Scripting
I am attempting to insert multiple lines of text into a specific place in a text file based on the lines above or below it.
For example, Here is a portion of a zone file.
IN NS ns1.domain.tld.
IN NS ns2.domain.tld.
IN ... (2 Replies)
Discussion started by: cdn_humbucker
2 Replies
PDF::API2::Outline(3pm) User Contributed Perl Documentation PDF::API2::Outline(3pm)
NAME
PDF::API2::Outline - outline management
METHODS
$otl = PDF::API2::Outline->new $api,$parent,$prev
Returns a new outline object (called from $otls->outline).
$otl->title $text
Set the title of the outline.
$otl->closed
Set the status of the outline to closed.
$otl->open
Set the status of the outline to open.
$sotl=$otl->outline
Returns a new sub-outline.
$otl->dest $pageobj [, %opts]
Sets the destination page of the outline.
$otl->dest( $page, -fit => 1 )
Display the page designated by page, with its contents magnified just enough to fit the entire page within the window both horizontally
and vertically. If the required horizontal and vertical magnification factors are different, use the smaller of the two, centering the
page within the window in the other dimension.
$otl->dest( $page, -fith => $top )
Display the page designated by page, with the vertical coordinate top positioned at the top edge of the window and the contents of the
page magnified just enough to fit the entire width of the page within the window.
$otl->dest( $page, -fitv => $left )
Display the page designated by page, with the horizontal coordinate left positioned at the left edge of the window and the contents of
the page magnified just enough to fit the entire height of the page within the window.
$otl->dest( $page, -fitr => [ $left, $bottom, $right, $top ] )
Display the page designated by page, with its contents magnified just enough to fit the rectangle specified by the coordinates left,
bottom, right, and top entirely within the window both horizontally and vertically. If the required horizontal and vertical
magnification factors are different, use the smaller of the two, centering the rectangle within the window in the other dimension.
$otl->dest( $page, -fitb => 1 )
Display the page designated by page, with its contents magnified just enough to fit its bounding box entirely within the window both
horizontally and vertically. If the required horizontal and vertical magnification factors are different, use the smaller of the two,
centering the bounding box within the window in the other dimension.
$otl->dest( $page, -fitbh => $top )
Display the page designated by page, with the vertical coordinate top positioned at the top edge of the window and the contents of the
page magnified just enough to fit the entire width of its bounding box within the window.
$otl->dest( $page, -fitbv => $left )
Display the page designated by page, with the horizontal coordinate left positioned at the left edge of the window and the contents of
the page magnified just enough to fit the entire height of its bounding box within the window.
$otl->dest( $page, -xyz => [ $left, $top, $zoom ] )
Display the page designated by page, with the coordinates (left, top) positioned at the top-left corner of the window and the contents
of the page magnified by the factor zoom. A zero(0) value for any of the parameters left, top, or zoom specifies that the current
value of that parameter is to be retained unchanged.
$otl->dest( $name )
(PDF 1.2) Connect the Outline to a "Named Destination" defined elswere.
$otl->url $url, %opts
Defines the outline as launch-url with url $url.
$otl->file $file, %opts
Defines the outline as launch-file with filepath $file.
$otl->pdfile $pdfile, $pagenum, %opts
Defines the destination of the outline as pdf-file with filepath $pdfile, $pagenum and options %opts (same as dest).
AUTHOR
alfred reibenschuh
perl v5.14.2 2014-03-09 PDF::API2::Outline(3pm)