10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I would like to read a variable name from file and I would like to use this...
e.g.
VARIABLE1=XXXXXX
File.txt
$VARIABLE1
Shell
for STRING in `cat File.txt`
echo $STRING
done
I would like the print XXXXXX.
It's possible????:confused:
Thanks :) (7 Replies)
Discussion started by: pinguc
7 Replies
2. Shell Programming and Scripting
Hi,
I am working on one script..I am having files in the below format
file 1 (each line is separated with : delimeter)
SPLASH:SPLASH:SVN
CIB/MCH:MCH:SVN
Now I want from file 1 that most left part of the first line will store in... (6 Replies)
Discussion started by: rohit22hamirpur
6 Replies
3. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I have to read the contents of each field of a file creating user accounts.
The file will be of format :
... (6 Replies)
Discussion started by: dude_me5
6 Replies
4. Shell Programming and Scripting
Hi,
i have one file which has list of data like this
xemp 42
yeet 87
wax 223
dyne 442
i want to read each of in for loop from the script
can you give me syntax
Use code tags, ty. (2 Replies)
Discussion started by: mail2sant
2 Replies
5. Shell Programming and Scripting
Hello,
I need to read from a file consisting of only one integer and enter that number into variable.can anyone help?
the script is written in cshell.
thanks. (4 Replies)
Discussion started by: offerbukra
4 Replies
6. UNIX for Dummies Questions & Answers
Hi,
How to read a file and put the values in a script. E.g.
file1.txt
02/12/2009;t1;t2
The script should read this file and put these values in 3 different variables x1,x2,x3 which can be used further.
Thanks
Ashu (3 Replies)
Discussion started by: er_ashu
3 Replies
7. Shell Programming and Scripting
how to read the variable from config file
eg: a.cfg below config file config file which contain
a=`hostname`
b=250
a.sh is shell script
echo "$a and $b"
if i run "a.sh 1.cfg" it works
but when i declare N number of variable it wont works..
can u please suggest for that ? (1 Reply)
Discussion started by: mail2sant
1 Replies
8. Shell Programming and Scripting
Hi,
Some one please help me with this script.
I have a file "sequence.txt" and contents of it look like below.
1 5
3 7
4 7
5 74
from my script i should be able to read every single and save the first columnbs to variable x1, x2, x3 and second column as y1, y2, y3 and so on. Then i can... (3 Replies)
Discussion started by: pragash_ms
3 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I want to pratmeterze my scripts like,
my confRsync file contains varibale values for 1. host 2. Destination and 3. source like this, I want to read this values from this and assing to my makeRsyn.sh file's varibales.
how to do this? (1 Reply)
Discussion started by: redlotus72
1 Replies
10. Shell Programming and Scripting
I am a FORTRAN guy and not a UNIX expert by any means so sorry if this sounds dumb, but all I want to do is have a UNIX script which reads data from a file (say 1000 lines worth, each row is a file name) and store it in an array to perform an operation on later. As maddeningly simple as this... (2 Replies)
Discussion started by: yorkdg
2 Replies
fastmail(1) General Commands Manual fastmail(1)
NAME
fastmail - quick batch mail interface
SYNOPSIS
bcc-list] cc-list] comments] from-name]
from-addr] in-reply-to] reply-to] references]
subject] filename address-list
DESCRIPTION
The command is a simple interface to the mail system that allows you to send a message without the overhead of an interactive mailer. It
is particularly efficient in batch-processing mail to very large groups of people.
All addresses should be full e-mail addresses, aliases in the file, or local login names.
Options
recognizes the following options:
Include a header entry. Send blind carbon copies to the comma-separated list of addresses in bcc-list.
Include a header entry. Send carbon copies to the comma-separated list of addresses in cc-list.
Include a header entry with the string value comments.
Debug. Display information on processing steps.
Replace the user name in the
header entry with from-name.
If the user is and the user name is then the default line is:
The option changes it to:
Replace the address in the
header entry with from-addr. In the example above, changes the original entry to
Include the header entry with the string value in-reply-to. This is usually used to identify a message that you are replying to.
Include the header entry with the single address given in replyto. This is the address where replies will usually be sent,
instead of to the address given in the header entry, very common with mailing lists.
Include a header entry containing the string value references.
Include a header entry containing the value subject. If this option is omitted, the message is sent without a subject entry.
Operands
recognizes the following operands:
address-list A list of one or more blank-separated addresses for the header line. These are the principal recipients of the mes-
sage.
filename Either the name of a file containing the message, or a dash to read from standard input.
EXAMPLES
A Fully Specified Command
This command has every option specified.
The online execution displays the following debug messages:
The received message has the following relevant header entries:
The header entry is not transmitted.
A Batch Process
Suppose you are user on machine and you have a shell script named that contains the following lines:
The command:
would mail a copy of the file to and staggered ten seconds apart.
would also silently receive a copy of the first message in the mail. Each resultant message would include the header lines:
FILES
aliases file.
Mail transport agent.
Temporary file.
AUTHOR
was developed by HP.
SEE ALSO
elm(1), sendmail(1M).
RFC 822 "Standard for the Format of Internet Text Messages"
fastmail(1)