01-18-2013
awk '!/^$/ is used to remove blank lines if any from cal command output.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi there,
Just wondering if anyone can help me with a unix script that will allow to check if a file is in a directory and if it is then e-mail it to someone and then move the file to another directory.
I have come up with nothing right now and was hoping someone could get the ball rolling... (1 Reply)
Discussion started by: ben_shark
1 Replies
2. Shell Programming and Scripting
Hello,
I receive email once an hour that looks like:
subject line: dialin
body:
ip address
ip address
.
.
sometimes the body has no ip address in it(blank mail)
I want a script that will send to my email every 12 hours the ip numbers and the time and data
something like:
data,... (1 Reply)
Discussion started by: meravd
1 Replies
3. UNIX for Dummies Questions & Answers
Hi
I have written the folowing mail function:
SENDMAIL () { mailx -r 'Team' -s ' QA Test & Work Build & Deployment ---> STARTED' $INTERESTED<<EOF
Maintenance is going on $path in 10 Minutes. So Please exit the Accounts
EOF
return
}
Above is working fine for me..
The... (2 Replies)
Discussion started by: gkrishnag
2 Replies
4. Solaris
Dear All,
Now I use solaris 10 and I try to forward mail from /var/mail/username to their external mail so what should I do?
thank u in advance (2 Replies)
Discussion started by: unitipon
2 Replies
5. Shell Programming and Scripting
Hi All,
Is there any way Unix shell script can directly read a mail on a mail server
(for eg. abc@xyz.com) and save it as a text file in a unix directory ?
Thanks
PRKS
---------- Post updated at 08:37 AM ---------- Previous update was at 08:36 AM ----------
I am using ksh (1 Reply)
Discussion started by: PRKS
1 Replies
6. UNIX for Advanced & Expert Users
i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail.
actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies
7. Shell Programming and Scripting
Hi..
I need to create a script which will send a mail with attached file of log whenever its invoked with some text in its body. (Using Sendmail)
I don't have any idea regarding that.
any one help me out with this.
Thanks, (1 Reply)
Discussion started by: sukhdip
1 Replies
8. Shell Programming and Scripting
hello , what is wrong in this script ?
#!/bin/bash
limite=3
while ;
do
if ;
then
pru=/usr/bin/mei.txt
cat $pru | mail -s "IMEIS" account@domain.com
fi (15 Replies)
Discussion started by: academico69
15 Replies
9. Shell Programming and Scripting
Hi Guys,
I am very new to shell script and I need your help here to write a script. Actually, I have a script abc.sh which don't get terminated itself. So I need to design a script to run this script, save the output to a file, search for a given string in the output and if it exists send those... (11 Replies)
Discussion started by: Sambit Sahu
11 Replies
10. UNIX for Advanced & Expert Users
I am having trouble getting mail to work on a red hat server. At first I was getting this message.
Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused
Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies
IGAWK(1) Utility Commands IGAWK(1)
NAME
igawk - gawk with include files
SYNOPSIS
igawk [ all gawk options ] -f program-file [ -- ] file ...
igawk [ all gawk options ] [ -- ] program-text file ...
DESCRIPTION
Igawk is a simple shell script that adds the ability to have ``include files'' to gawk(1).
AWK programs for igawk are the same as for gawk, except that, in addition, you may have lines like
@include getopt.awk
in your program to include the file getopt.awk from either the current directory or one of the other directories in the search path.
OPTIONS
See gawk(1) for a full description of the AWK language and the options that gawk supports.
EXAMPLES
cat << EOF > test.awk
@include getopt.awk
BEGIN {
while (getopt(ARGC, ARGV, "am:q") != -1)
...
}
EOF
igawk -f test.awk
SEE ALSO
gawk(1)
Effective AWK Programming, Edition 1.0, published by the Free Software Foundation, 1995.
AUTHOR
Arnold Robbins (arnold@skeeve.com).
Free Software Foundation Nov 3 1999 IGAWK(1)