11-06-2001
File name extensions
Hello people, I was wondering if anyone could help me?
I want to produce a shell script that changes the filename extension on all matching file.
E.G. change all files called ‘something.rtf' to ‘something.doc' by giving the command:
Changex rtf doc
*where ‘Changex' is the name of my shell script.
Does anyone know how to do this or know what ‘functions' I should use???
with regards,
nick
Last edited by thurrock; 11-06-2001 at 08:54 PM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have files with names like file1.txt.txt.txt.txt and file2.txt.txt.txt.txt.txt............ (random infinite number of .txt exist).
how to truncate (mv) their names to ones with single .txt extension like file1.txt and file1.txt ? In other words, how to extract the filename upto first... (12 Replies)
Discussion started by: prvnrk
12 Replies
2. Shell Programming and Scripting
We are moving from an OpenVMS server to a Unix server and I have a problem with ftp'ing files.
When I ftp the VMS server from the Unix server, I need to "mget" some files, for example "mget test_file*.txt;". The semicolon is necessary because OpenVMS has multiple versions of the file (eg... (5 Replies)
Discussion started by: cdines
5 Replies
3. Shell Programming and Scripting
Hi All,
Is there a way to list all file extensions in a directory and its recursive dirs?
Thanks (5 Replies)
Discussion started by: ganga.dharan
5 Replies
4. UNIX for Dummies Questions & Answers
Hi
How can i find the unique list of file extensions in a folder/subfolders
e.g.
MAIN/
a.txt
b.txt
a.clas
a.java
b.class
a.txt.112
c.12.ram.jar
i just need to get the below out irrespective of file being present in folder or subfolders
txt
clas
java (5 Replies)
Discussion started by: reldb
5 Replies
5. Shell Programming and Scripting
I am trying to store file with certain file extensions to list but having some problems.
Here is a part of the code
set fryLst = ""
set fxtLst = ""
foreach f ($AfullNameLst)
set fname = $f:r
set fext = $f:e
if ("$fext" == ".ry") set fryLst = "$fryLst $f"
if ("$fext" == ".xt")... (2 Replies)
Discussion started by: kristinu
2 Replies
6. Shell Programming and Scripting
I'm in csh and have a list of file names, example
set Lst = "file1.ry file2.ry file3.ry file4.ry"
I want to check if all the extensions are ry. Is they are, I want to do something. (1 Reply)
Discussion started by: kristinu
1 Replies
7. Shell Programming and Scripting
Hi Guys,
I have files named myfileaa,myfileab,myfileac,myfilesad.... till myfileav.
Now i needs to rename all these files to myfileaa.txt ,myfileab.txt,myfileac.txt.
Please help me how to do the same.
Thanks in advance..!!! (4 Replies)
Discussion started by: jaituteja
4 Replies
8. Shell Programming and Scripting
Hey guys,
I'm lost... I need to make a script that will work in this way:
./script.sh -e sh /usr/bin /home/student
this script will result in this output:
amuFormat.sh /usr/bin
gettext.sh /urs/bin
perfect.sh /home/student
the parameter -e <ext> gives you which... (2 Replies)
Discussion started by: Miki1579
2 Replies
9. Shell Programming and Scripting
Hello Unix board community,
I have to program a shell script, but I am a complete noob so I hope I get some help here. The assignment is as follows:
The program removes all comments regardless of formatting or language from files with specific file name extensions (php, css, js, ...).... (3 Replies)
Discussion started by: TheZeusMan
3 Replies
10. Shell Programming and Scripting
Hello, I need some help. I have files in one and the same directory, but with different extensions, like this:
file1.IN
file2.IN
file3.IN
file1.OUT
file2.OUT
Apparently some files with OUT extension can be missing. So I want to compare *.IN and *.OUT, ignoring the extension and get result... (3 Replies)
Discussion started by: apenkov
3 Replies
DOXYGEN(1) User Commands DOXYGEN(1)
NAME
doxygen - documentation system for various programming languages
DESCRIPTION
Doxygen is a documentation system for C++, C, Java, Objective-C, IDL (Corba and Microsoft flavors) and to some extent PHP, C#, and D.
You can use doxygen in a number of ways:
1) Use doxygen to generate a template configuration file:
doxygen [-s] -g [configName]
If - is used for configName doxygen will write to standard output.
2) Use doxygen to update an old configuration file:
doxygen [-s] -u [configName]
3) Use doxygen to generate documentation using an existing configuration file:
doxygen [configName]
If - is used for configName doxygen will read from standard input.
4) Use doxygen to generate a template style sheet file for RTF, HTML or Latex.
RTF: doxygen -w rtf styleSheetFile
HTML: doxygen -w html headerFile footerFile styleSheetFile [configFile]
LaTeX: doxygen -w latex headerFile styleSheetFile [configFile]
5) Use doxygen to generate an rtf extensions file
RTF: doxygen -e rtf extensionsFile
If -s is specified the comments in the config file will be omitted. If configName is omitted `Doxyfile' will be used as a default.
AUTHOR
Doxygen version 1.6.3, Copyright Dimitri van Heesch 1997-2007
SEE ALSO
doxytag(1), doxywizard(1).
doxygen 1.6.3 July 2010 DOXYGEN(1)