12-30-2012
Thank you, jim.
Quote:
Is it imperative that the native charset remain in tact on the destination side?
Unluckily, it is. These files were created by downloading web pages from internet. If the foo_files get renamed, then all appearances of 'foo_files' in foo.html would have to be renamed too. It seems that the only way out is to be careful when downloading HTML files and change the name, in the Save As dialog box, if appropriate.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I like to know how to print accent when use the command lp -d <file>.
This <file> contain the following accents (e.g. é, á, ê, ã, ç) and anothers accents, please i need to help.
thank´s (0 Replies)
Discussion started by: edvaldo
0 Replies
2. Shell Programming and Scripting
I have a problem with the script below
#!/bin/sh
for vo in `find -maxdepth 1 -type f -regex "^\./*$"`
do
ls -l "$vo"
some other commands
done
It works fine until `find ...` returns files with spaces. I've tryed to change IFS but haven't succeed
Any solutions? (4 Replies)
Discussion started by: Hitori
4 Replies
3. Shell Programming and Scripting
Hi, I would like to know how could I remove accentes and the symbols: º and ª of a text file with sed. Whis this command doesn't works :-( sed "s/í/i/g" filename Many thanks and sorry for my english! (7 Replies)
Discussion started by: mierdatuti
7 Replies
4. Programming
I'm trying to figure out how to support Unicode or atleast an unsigned char in the d_name of struct dirent
The problem i'm facing is that I'm checking file names for special characters and obviously the "char d_name" doesn't like it. I'm looping through the directory and getting the file... (3 Replies)
Discussion started by: james2432
3 Replies
5. Shell Programming and Scripting
Hi
I need to pull out the name of the file from the path.
See, here is my loop that gets the files:
dsxdir="/var/local/dsx/import"
for dsxfile in $dsxdir/*.dsx;
do
dsxlog $reverb --info --module="$module" "$dsxfile"
$dsximp $norule $oprange --dsn=$dsn --dbname=$dbname... (6 Replies)
Discussion started by: ladyAnne
6 Replies
6. UNIX for Dummies Questions & Answers
I have 7 files with 7 different names coming into a specified folder on weekly basis, i need to pick a file one after another and load into oracle table using sql loader. I am using ksh to do this. So in the process if the file has error records and if sql loader fails to load into oracle tables,... (0 Replies)
Discussion started by: vpv0002
0 Replies
7. Shell Programming and Scripting
Hi Folks,
I'm looking for some ideas on how to change some file names. I'm pretty sure I need to use sed or awk but they still escape me. The files I have are like:
VOD0615 NEW Blades R77307.pdf or
VOD0615_NEW_Blades_R77307.pdf
and what I want after processing is:
R77307 NEW Blades.pdf
... (5 Replies)
Discussion started by: imonkey
5 Replies
8. AIX
i excuted filemon with filemon -u -o /tmp/filemon.out -O all;sleep 60; trcstop.
everything is ok, but i only get PID for filenames in Most Active Files.
is there any different flags i need to use to get filenames?
Code tags please, thanks. (3 Replies)
Discussion started by: curtis911
3 Replies
9. Shell Programming and Scripting
Hi.
I'm trying to get the names of files from a log file, without the path and special characters.
I have a file that contains lines like this:
'/path/to/files/file00010000070874.EXT'
'/path/to/files/file00010000070875.EXT'
'/path/to/files/file00010000070876.EXT'... (4 Replies)
Discussion started by: Hekm
4 Replies
10. Shell Programming and Scripting
Hi,
In my previous post I looked for timestamp to be added to the filename
https://www.unix.com/shell-programming-scripting/230603-how-append-timestamp-filenames-using-find.html
Now how do I select those files that do not have timestamp in the filenames.
I tried the following. My file has... (3 Replies)
Discussion started by: bobbygsk
3 Replies
LWP-RGET(1) User Contributed Perl Documentation LWP-RGET(1)
NAME
lwp-rget - Retrieve web documents recursively
SYNOPSIS
lwp-rget [--verbose] [--auth=USER:PASS] [--depth=N] [--hier] [--iis]
[--keepext=mime/type[,mime/type]] [--limit=N] [--nospace]
[--prefix=URL] [--referer=URL] [--sleep=N] [--tolower] <URL>
lwp-rget --version
DESCRIPTION
This program will retrieve a document and store it in a local file. It will follow any links found in the document and store these
documents as well, patching links so that they refer to these local copies. This process continues until there are no more unvisited links
or the process is stopped by the one or more of the limits which can be controlled by the command line arguments.
This program is useful if you want to make a local copy of a collection of documents or want to do web reading off-line.
All documents are stored as plain files in the current directory. The file names chosen are derived from the last component of URL paths.
The options are:
--auth=USER:PASn
Set the authentication credentials to user "USER" and password "PASS" if any restricted parts of the web site are hit. If there are
restricted parts of the web site and authentication credentials are not available, those pages will not be downloaded.
--depth=n
Limit the recursive level. Embedded images are always loaded, even if they fall outside the --depth. This means that one can use
--depth=0 in order to fetch a single document together with all inline graphics.
The default depth is 5.
--hier
Download files into a hierarchy that mimics the web site structure. The default is to put all files in the current directory.
--referer=URI
Set the value of the Referer header for the initial request. The special value "NONE" can be used to suppress the Referer header in any
of subsequent requests. The Referer header will always be suppressed in all normal "http" requests if the referring page was
transmitted over "https" as recommended in RFC 2616.
--iis
Sends an "Accept: */*" on all URL requests as a workaround for a bug in IIS 2.0. If no Accept MIME header is present, IIS 2.0 returns
with a "406 No acceptable objects were found" error. Also converts any back slashes (\) in URLs to forward slashes (/).
--keepext=mime/type[,mime/type]
Keeps the current extension for the list MIME types. Useful when downloading text/plain documents that shouldn't all be translated to
*.txt files.
--limit=n
Limit the number of documents to get. The default limit is 50.
--nospace
Changes spaces in all URLs to underscore characters (_). Useful when downloading files from sites serving URLs with spaces in
them. Does not remove spaces from fragments, e.g., "file.html#somewhere in here".
--prefix=url_prefix
Limit the links to follow. Only URLs that start the prefix string are followed.
The default prefix is set as the "directory" of the initial URL to follow. For instance if we start lwp-rget with the URL
"http://www.sn.no/foo/bar.html", then prefix will be set to "http://www.sn.no/foo/".
Use "--prefix=''" if you don't want the fetching to be limited by any prefix.
--sleep=n
Sleep n seconds before retrieving each document. This options allows you to go slowly, not loading the server you visiting too much.
--tolower
Translates all links to lowercase. Useful when downloading files from IIS since it does not serve files in a case sensitive manner.
--verbose
Make more noise while running.
--quiet
Don't make any noise.
--version
Print program version number and quit.
--help
Print the usage message and quit.
Before the program exits the name of the file, where the initial URL is stored, is printed on stdout. All used filenames are also printed
on stderr as they are loaded. This printing can be suppressed with the --quiet option.
SEE ALSO
lwp-request, LWP
AUTHOR
Gisle Aas <aas@sn.no>
perl v5.10.0 2008-04-07 LWP-RGET(1)