11-09-2009
1) Read again this you agreed with:
https://www.unix.com/homework-coursew...ons-forum.html
2) Repost this time correctly filling in:
Quote:
Use and complete the template provided. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
2. Relevant commands, code, scripts, algorithms:
3. The attempts at a solution (include all code and scripts):
4. Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course)
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi everybody,
how do i open a txt file writen in unix on to a web page
so when i want to view the txt file that was generated from a shell program, that file is open on a web page
do i use the cat > filename.html command to do this, or is there another way
many thanks
:D (2 Replies)
Discussion started by: alexd
2 Replies
2. Shell Programming and Scripting
What does the below command means
$cat <<% >abc.txt (3 Replies)
Discussion started by: surjyap
3 Replies
3. UNIX for Dummies Questions & Answers
All -
how do i save the file after i used CAT command line to modify?
Thanks :confused: (2 Replies)
Discussion started by: March_2007
2 Replies
4. AIX
I would like to append some statement into 1 single file so that it can be concatenate together in 1 word. I have tried >> but it will seperate my 2 statement into 2 rows.
# cat abc.txt cde.txt > result.txt
where abc.txt is "abcde" and cde.txt is "12345"
the result should come out as... (3 Replies)
Discussion started by: kwliew999
3 Replies
5. UNIX for Dummies Questions & Answers
Hi
Can anybody tell the difference between Difference between cat , cat > , cat >> and touch command in UNIX?
Thanks (6 Replies)
Discussion started by: skyineyes
6 Replies
6. UNIX for Advanced & Expert Users
Dear All
I have two text files File1.txt and File2.txt . I am concatenating the two files and making it as single file Cat_File.txt. Now i need to keep joined file in two different path. that is I need to use cat command only once ,but store joined file in two different locations. Since... (3 Replies)
Discussion started by: tkbharani
3 Replies
7. Shell Programming and Scripting
Hello,
So I sorted my file as I was supposed to:
sort -n -r -k 2 -k 1 file1 | uniq > file2
and when I wrote
> cat file2
in the command line, I got what I was expecting, but in the script itself
...
sort -n -r -k 2 -k 1 averages | uniq > temp
cat file2
It wrote a whole... (21 Replies)
Discussion started by: shira
21 Replies
8. UNIX for Advanced & Expert Users
I believe I used the cat command to append a file beside another file (instead of below it) but I did not document it any where and I can't remember exactly how I did it. Has anyone else done this? I have tried all the cat options individually with no luck. It may be a combination of options.
... (2 Replies)
Discussion started by: nickg
2 Replies
9. Shell Programming and Scripting
I want to concatenate 100 files to one file and append file name in each record to find out which file it came from
for a in $(<shal_group)
do
cat $a >> bigoutput.group
The above code put all files in one file but i want file name appended to each file
Record should be like this... (3 Replies)
Discussion started by: pinnacle
3 Replies
10. AIX
Hi.
How can i write a command on AIX like the one i did at linux that find string in a file and show me that string, and return 3 lines before and 4 lines after that string.
my linux command is:
/bin/cat <filename> | tail -150 | grep -B2 -A8 "<string to look for>"
Example:
/bin/cat ... (10 Replies)
Discussion started by: yechi_r
10 Replies
LEARN ABOUT DEBIAN
podtree2html
PODTREE2HTML(1p) User Contributed Perl Documentation PODTREE2HTML(1p)
NAME
podtree2html - translate a POD to HTML
SYNOPSIS
"podtree2html" ["--base" url] ["--css" url] ["--"["no"]"toc"] ["--hr" level] ["--bgcolor" #rrggbb] ["--text" #rrggbb] ["--variables"
values.pl] source dest [template] [variable=value ...]]
DESCRIPTION
"podtree2html" reads the POD in file source, translates it to HTML, and writes it to file dest. dest is created world-readable.
If a template file is provided, then template will be filled in by the "Text::Template" module and written to dest. Here is a minimal
template, showing all the variables that are set by "podtree2html".
<html>
<head>
<base href="{$base}">
<link href="{$css}" rel="stylesheet" type="text/css">
<title>{$title}</title>
</head>
<body bgcolor="{$bgcolor}" text="{$text}">
{$toc}
{$body}
</body>
</html>
If the "--variables" option is provided, then the file values.pl will be executed with a "do" call before the template is filled in.
values.pl may contain arbitrary Perl code. The program fragments in the template are evaulted in the "Pod::Tree::HTML" package. Any
variables that values.pl sets in this package will be available to the template.
Additional scalar variables may be set on the command line with the variable=value syntax. Do not prefix variable with a "$" sigil.
Variables set on the command line override variables set in values.pl.
OPTIONS
"--base" url
Translate "L<>" sequences into HTML links relative to url.
"--css" url
Specifies a Cascanding Style Sheet for the generated HTML page. Here are example rules for all the different HTML elements that may
appear in a POD.
a:link { background: #ff8080 }
body { background: #f0f0f0 }
code { background: #c0ffc0 }
dd { background: #ffffe0 }
dl { background: #fffff0 }
dt { background: #ffffc0 }
h1 { background: #ffc0c0 }
h2 { background: #ffe0e0 }
hr { background: #ff0000; height: 5px }
i { background: #ffc0c0 }
li { background: #e0e0e0 }
ol { background: #fff0ff }
p { background: #f0f0ff }
pre { background: #f0fff0 }
ul { background: #f0ffff }
"--"["no"]"toc"
Includes or omits the table of contents. Default is to include the TOC.
"--hr" level
Controls the profusion of horizontal lines in the output, as follows:
level horizontal lines
0 none
1 between TOC and body
2 after each =head1
3 after each =head1 and =head2
Default is level 1.
"--bgcolor" #rrggbb
Set the background color to #rrggbb. Default is white.
"--text" #rrggbb
Set the text color to #rrggbb. Default is black.
"--variables" values.pl
Execute the file values.pl with a "do" call before filling in template. values.pl may contain arbitrary Perl code.
REQUIRES
"Pod::Tree::HTML"
SEE ALSO
"pods2html", "Pod::Tree::HTML"
AUTHOR
Steven McDougall, <swmcd@world.std.com>
COPYRIGHT
Copyright (c) 1999-2007 by Steven McDougall. This program is free software; you can redistribute it and/or modify it under the same terms
as Perl.
perl v5.10.1 2009-04-11 PODTREE2HTML(1p)