Sorry. the output from the printer show up like below. The "-" represent a whitespace since this post seems to trim the whitespaces. It's like it was tabbed before each line. Again, Pls ignore the "-". I put them to show the spaces. .
--------------------- aa
--------------------------------------bbb
------------------------------------------------------ccccc
Again, use code tags! That's what they're there for, they preserve spacing and don't substitue smilies. Quote my post to see how I did this:
as the title, I had try use "wc -l test.txt" but it give me "<many spaces> 384 test.txt" but the result I want is just "384" could any person can help me that?
Thx:( (5 Replies)
i have to print first n lines of a file. how can i do that without using head command. for some reason i do not want to use Head. is there a way to get that result using awk or sed?.
i an using this on korn shell for AIX
Thanks.. (7 Replies)
Dear users,
I need to count the number of lines in a simple text file and print the number on the first line of that same file.
I know I can count the lines using
wc -l file.txt
this gives for example
100 file.txt
I need the number 100 to be printed at the very top of file.txt... (2 Replies)
Hi,
A very Good Evening to All,
I am writing a script for my application. I have a file with 1000 lines. Among that 1000 lines i am searching for a particular string. And from that string i need to pull all the data in to a seperate file.
For example the contents of my file is as below.
... (4 Replies)
Hello,
I want to print a number of lines of a file after a specific expression of a line.
I have this sed command but it prints only 1 line after the expression.
How could I adapt it to print for instance 10 lines after or 15 lines after ?
sed -n '/regexp/{n;p;}'
Thx & Regs,
Rany. (5 Replies)
Hi All,
I'm trying to send extended ascii characters to my HP2055 as part of PCL printer control codes. What I want to do is select a bar code font, print the bar code and reset the printer to the default font.
Selecting the bar code font works good. Printing the bar code goes almost ok too. ... (5 Replies)
Hi,
I'm trying to auto generate some php files with a default preamble at the top which is a block comment.
The problem is that my output has no new lines and it looks like the output from "ls" is being printed after everyline
This is my code
#!/bin/bash
read -d '' pre_amble... (1 Reply)
Hi guys,
I was wondering if there was an easy solution, using tcsh, to print out lines that appear twice with a given pattern in a file?
So if I am looking for lines with "test" in a given file that contains:
blah
test blah1
blah //don't print this out as it doesn't have... (3 Replies)
Hi !
I need some help with a script I am writing.
I am trying to compare two files, the first file being in this format :
Header1
Text1-1
Text1-2
Text1-3
Header2
Text2-1
etc...
For each header, I want to check if it appears in the second file, and if it is the case print the header... (4 Replies)
Hi All,
I have an ascii file in which few columns are having hex values which i need to convert into ascii. Kindly suggest me what command can be used in unix shell scripting?
Thanks in Advance (2 Replies)
Discussion started by: HemaV
2 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)