10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Is it possible to use a cookie transfer to a location and then rename the output?
cd target_directory
wget -x --load-cookies cookies.txt http://172.24.188.113/data/getCSV.csv |
for file in *
do
mv $file $file.txt
done
For example, if I change the directory to C:\test and use the ... (2 Replies)
Discussion started by: cmccabe
2 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have a large number of subdirectories (>200), and in each of these directories there is a file with a name like "opp1234.dat".
I'd like to know how I could change the names of these files to say "out.dat" in all these subdirectories in one go.
Thanks! (5 Replies)
Discussion started by: lost.identity
5 Replies
3. Shell Programming and Scripting
Gurus. Would appreciate your help very much.
I would like to list all the files in directory, and concat the header record in each file with the filename, and output that list to a filelist.
ie.
filename|header{filename}
Thanks in advance (6 Replies)
Discussion started by: sats2059
6 Replies
4. Shell Programming and Scripting
In the Directory all the Files are following format.
Filename_yyyymmdd_numbers.txt
eg.
file_name_20120106_015802.txt .
I want to write the Shell script to rename all the file to
file_name.txt.in the directory.
Thanks
Mani (5 Replies)
Discussion started by: gavemani
5 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I need to concatenate data files with a .mp extension that are stored in directories by year. I want to keep the same filename as an output for example:
for the file name p030.mp, which resides in the following subdirectories:
/2000/p030.mp
/2001/p030.mp
/2002/p030.mp
I want to:... (4 Replies)
Discussion started by: cmshreve
4 Replies
6. UNIX for Dummies Questions & Answers
Hi, I am pretty new to this.
I have a condition where in I want to replace all files within a folder. All filenames with character "abc" would need to replaced with "xyz".
eg:
helloabcworld-->helloxyzworld
helloworld-->helloworld
...
...
Thanks in advance. (6 Replies)
Discussion started by: sakets_2000
6 Replies
7. Shell Programming and Scripting
Hi,
I've got a large to task to do, which I've broken into three section. I'm just stuck on one of the sections.
I have to change the end of a filename from .txt to .doc in a directory. So if I have a directory called "folder1" and two files contained in it called "file1.txt" and "file2.txt",... (7 Replies)
Discussion started by: TeddyP
7 Replies
8. Shell Programming and Scripting
I want to download xyz.php to abc.php and save it in the directory mentioned.
wget -directory-prefix=/usr/local/apache/htdocs/ http://somesite.com/xyz.phpThis command will save the file as xyz.php but the following does not work...
wget -directory-prefix=/usr/local/apache/htdocs/abc.php... (1 Reply)
Discussion started by: shantanuo
1 Replies
9. Shell Programming and Scripting
Hi All,
Can you please help me.
The situation is like this. There are many different file name in this directory.
I have to grep all the file that the name start with "PTWO" and rename it to COM with the current date.
This is the script that I have done and it hit an... (16 Replies)
Discussion started by: badbunny9316
16 Replies
10. Shell Programming and Scripting
i have several thousand files and in subdirs that are named
file.46634.txt
budget.75346.pdf
etc
i want to remove the number but retain the extension.
it is always a 5 digit.
thanks. (6 Replies)
Discussion started by: jason7
6 Replies
POD2HTML(1) Perl Programmers Reference Guide POD2HTML(1)
NAME
pod2html - convert .pod files to .html files
SYNOPSIS
pod2html --help --htmlroot=<name> --infile=<name> --outfile=<name>
--podpath=<name>:...:<name> --podroot=<name>
--libpods=<name>:...:<name> --recurse --norecurse --verbose
--index --noindex --title=<name>
DESCRIPTION
Converts files from pod format (see perlpod) to HTML format.
ARGUMENTS
pod2html takes the following arguments:
help
--help
Displays the usage message.
htmlroot
--htmlroot=name
Sets the base URL for the HTML files. When cross-references are made, the HTML root is prepended to the URL.
infile
--infile=name
Specify the pod file to convert. Input is taken from STDIN if no infile is specified.
outfile
--outfile=name
Specify the HTML file to create. Output goes to STDOUT if no outfile is specified.
podroot
--podroot=name
Specify the base directory for finding library pods.
podpath
--podpath=name:...:name
Specify which subdirectories of the podroot contain pod files whose HTML converted forms can be linked-to in cross-references.
libpods
--libpods=name:...:name
List of page names (eg, "perlfunc") which contain linkable "=item"s.
netscape
--netscape
Use Netscape HTML directives when applicable.
nonetscape
--nonetscape
Do not use Netscape HTML directives (default).
index
--index
Generate an index at the top of the HTML file (default behaviour).
noindex
--noindex
Do not generate an index at the top of the HTML file.
recurse
--recurse
Recurse into subdirectories specified in podpath (default behaviour).
norecurse
--norecurse
Do not recurse into subdirectories specified in podpath.
title
--title=title
Specify the title of the resulting HTML file.
verbose
--verbose
Display progress messages.
AUTHOR
Tom Christiansen, <tchrist@perl.com>.
BUGS
See Pod::Html for a list of known bugs in the translator.
SEE ALSO
perlpod, Pod::Html
COPYRIGHT
This program is distributed under the Artistic License.
perl v5.8.0 2003-02-18 POD2HTML(1)