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
GNUHTML2LATEX(1) User Contributed Perl Documentation GNUHTML2LATEX(1)
NAME
gnuhtml2latex - html to latex converter
SYNOPSIS
gnuhtml2latex [options] filename
OPTIONS
-a [author]
speecify document author
-b Process more than one input HTML file (they all get concatenated and written to a single output file, or to STDOUT if -s is set)
-c Use table of contents
-f [string]
Specify foonote
-h [string]
Specify header
-i filename
Get the list of files to be converted from the specified filename
-m Allow the use of some tags that require entering and exiting math mode.
Currently, the superscript and subscript tags are achieved by using the math mode. Now, using the math mode can break some formatting.
Math mode will only be entered in the output document if you specify this switch.
-n Use numbered sections
-H use hyperref package to process anchors
-g Include images. If wget is installed, it will be used in order to download the images; otherwise, their position will just be marked in
the resulting TeX document.
-o [string]
Specify document style
-p Break page after title / table of contents
-P Partial / plain: Omit preamble and postamble. Note that -P makes -H and -o meaningless (as they act in the preamble)
-S Skip (ignore) the specified comma-separated tags, along with all of their content.
-s Write to STDOUT instead of to inputfilename.tex
-t [title]
Specify title of document
DESCRIPTION
This aims to be replacement of html2latex.
Program takes html file foo.html or foo.htm file and makes latex file foo.tex from it
NOT VERY AMBITIOUS TODO
For people who want only functionality of original html2latex
bugfixes - Im sure there is plenty of bugs inside
clueful backslash escaping
more entities from outside of iso-8895-1
tables
performance boost
and a lot more
MORE AMBITIOUS TODO
For people who want a real tool
make it part of some html processor
FUTURE OF THIS PACKAGE
This is very possible that functions of this package will be included to some more general project. This package was made mainly to make
world a bit more free.
perl v5.14.2 2012-02-29 GNUHTML2LATEX(1)