06-23-2008
Creating multiple extensions
Friends
I want to automat sending a letter to different persons whose directories are named as 001, 002, 003, 004.
To push the same letter to all these directories, I need to name the letter as letter.001, letter.002 like that.
Is there any method whereby I get the extension of this letter as myletter.001, myletter.002 etc.
Please help and thanks in advance
sastry
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to use find to locate files with two different extensions, and run a grep on the results. The closest I have gotten is incredibly slow and ugly:
for i in `ls -laR|egrep -e '(.js|.css)'`; do find . -name $i -print|xargs grep -H searchBg; done;
This method makes my eyes bleed. Help! ;)
... (2 Replies)
Discussion started by: r0sc0
2 Replies
2. Shell Programming and Scripting
I have a program which gets an input file (which contain a list of objects) and processes the objects one by one sequentially. However when there are many objects it is faster to split the input into smaller lists and run the program in multiple terminal sessions simultaneously. I want to know if... (2 Replies)
Discussion started by: stevefox
2 Replies
3. Shell Programming and Scripting
I want to make a symbolic link to a set of files in a particular directory if they exist. The number of files in the set is not known. The following script fails because it is ambigious.
if(-f dir1/*.a) then
ln -s dir1/*.a dir2/
endif
Can anyone help me?
Thanks a lot. (1 Reply)
Discussion started by: Deanne
1 Replies
4. 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
5. Shell Programming and Scripting
I posted this already in another thread, but was told that I should create a seperate thread for the following question:
How do I strip the extension when the delimiter might occur multiple times in the filename?
For example:
I have 2 files as input for my script.
test.extension... (8 Replies)
Discussion started by: Nemelis
8 Replies
6. UNIX for Dummies Questions & Answers
I copied some files to another folder, and I want to change them from .doc extensions to .txt extensions. I tried using the cp and mv commands, but it didn't work. Is it possible to change file extensions with these commands, and if so how do I do it? I tried using the * wildcard (say cp *.doc... (1 Reply)
Discussion started by: Straitsfan
1 Replies
7. Programming
I am having problems creating multiple forks. I want create a certain number of forks, each call a program and each wait for a different value. How is this accomplished my loop is not doing the trick.
for (i = 0; i < 5; i++) {
if (fork() < 0) {
//print error
}
... (3 Replies)
Discussion started by: Vikings1201
3 Replies
8. Debian
for media files in directory i want change every special char in name to "_" , create screenshots, get media information, then cat that info in 1 file, after that i want split (only) media files (not *.jpg,*.txt, etc.) with rar (including some file with info in each archive, and give each archive... (7 Replies)
Discussion started by: sunnymuffin
7 Replies
9. Shell Programming and Scripting
HI,
I have some csv files with mutiple extensions, I want to remove all the extensions and keep only the .csv extension.
anybody can suggest me how to do this.
source files
1.txt.csv.txt.csv.csv.txt.csv
2.csv.txt.csv.txt.csv.txt
target
1.csv
2.csv
--Wang (1 Reply)
Discussion started by: wangkc
1 Replies
10. Shell Programming and Scripting
Here is a simplified example of my problem. Say I have the following 3 sub-directories;
./folder1
A.txt
A.sh
./folder2
B.txt
./folder3
C.txt
C.sh
I would like to list the directory names which contain both '.txt' & '.sh' type extensions. I have came up with the following code;... (8 Replies)
Discussion started by: mmab
8 Replies
LEARN ABOUT DEBIAN
yodlletter
yodlletter(7) Your Own Document Language yodlletter(7)
NAME
yodlletter - Yodl's `letter' document type
SYNOPSIS
letter(language)(date)(subject)(opening)(salutation)(author)
The letter document type was implemented to write LaTeX letters.
DESCRIPTION
The letter document type was specifically implemented to write LaTeX letters, using LaTeX's brief.cls document class. It is available only
for the LaTeX (yodl2latex(1)) converter.
This manual page briefly describes Yodl's letter document type. This document type is specific enough that it warrants a separate man-
page.
letter documents do not allow you to use the `standard' sectioning commands (e.g., sect() and subsect()). You can, however, use macros
that are normally used within such sections, such as description(), itemization(), bf() or em().
Several specific macros, to be used in the preamble, are available for the letter document type. They are:
o AfourEnlarged(): Enlarges the usable height of A4 paper by 2 cm.: the top margin is reduced by 2 cm.
o letteraddenda(type)(value): Adds an addendum at the end of a letter. type should be bijlagen (i.e., appendices), cc or ps. Use nl()
within the value section if multiple addenda of a certain type are used.
o letteradmin(yourdate)(yourref): Puts yourletterfrom and yourreference elements in the letter. If left empty, two dashes are
inserted.
o letterfootitem(name)(value): Puts a footer at the bottom of letter-pages. Up to three will usually fit. For example,
o letterreplyto(name)(address)(zip city): Defines the `reply to' address.
o letterto(element): Adds element as an additional line to the address of the addressee. Use one element for each line of the
addressee's address. Up to five lines will usually fit. A sixth line may be squeezed in, if necessary.
The letter) macro itself requires the following arguments:
o language: select english, dutch, or another language supported by the babel.sty style;
o date: the letter's date. Use your own date-convention. The text specified here will be used as the letter's date;
o subject: a short indication as to why you wrote the letter
o opening: the letter's opening, e.g., Dear Linus,;
o salutation: the letter's closing phrase, e.g., Kind regards,;
o author: the name of the letter's author. nl() macros can be used here, but the brief class will also restrict the width of the
author-lines by itself.
SEE ALSO
latex(1), yodlstriproff(1), yodl(1), yodlbuiltins(7), yodlconverters(1), yodlletter(7), yodlmacros(7), yodlmanpage(7), yodlpost(1),
yodlverbinsert(1).
BUGS
-
AUTHOR
Frank B. Brokken (f.b.brokken@rug.nl),
yodl_3.00.0.tar.gz 1996-2010 yodlletter(7)