wget same filename from subdirectories and rename or concat


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting wget same filename from subdirectories and rename or concat
# 1  
Old 06-27-2011
wget same filename from subdirectories and rename or concat

I would like to wget a file "index.html" from a site which is lies in different subdirectories and is different in size. The index.html shall be concatenated or renamed to index01.html index02.html .... I would like to store this file in just one directory and use the option -nd. Though i can't get the code solved to rename or concatenate.

This my code i got so far:
Code:
wget --mirror --no-directories --accept=index.html

Can anybody help?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Wget rename file

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

Rename a large number of files in subdirectories

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

Filename (concat) head -1 > newfilelist

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

Rename FileName in the Directory

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

cat files from subdirectories output using same filename

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

rename filename

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

How do I rename a filename in a directory?

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

wget and rename

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

Grep and rename the filename

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

rename multiple filename.45267.txt to >> filename.txt

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
Login or Register to Ask a Question
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> --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. 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.18.2 2018-08-17 POD2HTML(1)