08-14-2008
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
i am very new to UNIX
plz help me in this scenario
i have two text files as below
file1.txt
name=Rajakumar.
Discipline=Electronics and communication.
Designation=software Engineer.
file2.txt
name=Kannan.
Discipline=Mechanical.
Designation=CADD Design Engineer.
... (6 Replies)
Discussion started by: kkraja
6 Replies
2. Shell Programming and Scripting
Can someone tell me how I can do this?
e.g:
Say file1.txt contains:
today is monday
the 22 of
NOVEMBER
2010
and file2.txt contains:
the
11th
month
of
How do i replace the word NOVEMBER with (5 Replies)
Discussion started by: tuathan
5 Replies
3. Shell Programming and Scripting
Hi
I am not the best scripter in the world and have run into a issue which you might be able to guide me on...
I have two files.
File1 :
A123, valueA, valueB
B234, valueA, valueB
C345, valueA, valueB
D456, valueA, valueB
E567, valueA, valueB
F678, valueA, valueB
File2:
C345,... (5 Replies)
Discussion started by: luckycharm
5 Replies
4. Shell Programming and Scripting
Hi experts,
In my text file I have the following alot of lines like below.
input.k is as follows.
2684717 -194.7050476 64.2345581 150.6500092 0 0
2684718 -213.1575623 62.7032242 150.6500092 0 0
*INCLUDE
$# filename... (3 Replies)
Discussion started by: hamnsan
3 Replies
5. Shell Programming and Scripting
Hi,
I want to achieve something similar to what described in another post:
The difference is I want to add the line if the pattern is not found.
File 1:
A123, valueA, valueB
B234, valueA, valueB
C345, valueA, valueB
D456, valueA, valueB
E567, valueA, valueB
F678, valueA, valueB
... (11 Replies)
Discussion started by: jyu3
11 Replies
6. Shell Programming and Scripting
Hi All, I will need an help with respect to replacing a range of columns on a non-delimited file using a particular string pattern.
Say file input is
MYNUMBERD000000-BAN CHUE INSNTS ** N+
MYAREDSDD000000+BAN CHUE INSNTS ** N+
MYDERFFFSD00000-GIR PENT - ACH ** ... (5 Replies)
Discussion started by: navojit dutta
5 Replies
7. Shell Programming and Scripting
I don't know if it's been asked before but seems i gave up seeking.
i have 2 files :
file1.txt
Monday XXXX
Tuesday XXXX
XXXX Wednesday
Thursday XXXX
XXXX is in every lines of file1.txt and i want to replace them with each line in file2.txt:
home
school
cinema
so output file is:
... (19 Replies)
Discussion started by: perseous
19 Replies
8. Shell Programming and Scripting
HI
Can any one guide me how to achieve this task. I have 2 files
env.txt
#Configuration.Properties values
identity_server_url = http://identity.test-hit.com:9783/identity/service/user/register
randon_password_length = 6
attachment_file_path = /pass/temp/attachments/... (1 Reply)
Discussion started by: nikilbr86
1 Replies
9. Shell Programming and Scripting
Hi,
I'm trying to replace a range of characters by their position in each line by spaces.
I need to replace characters 95 to 145 by spaces in each line.
i tried below but it doesn't work
sed -r "s/^(.{94})(.{51})/\ /" inputfile.txt > outputfile.txt
can someone please help me... (3 Replies)
Discussion started by: Kevin Tivoli
3 Replies
10. UNIX for Dummies Questions & Answers
Hi Everyone,
I have a requirement in ksh where i have a set of files in a directory. I need to search each and every file if a particular string is present in the file, delete that line and replace that line with another string expression in the same file.
I am very new to unix. Kindly help... (10 Replies)
Discussion started by: Pradhikshan
10 Replies
LEARN ABOUT HPUX
fastmail
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)