11-19-2012
thanks guys but how can i give error massage
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
My script is taking a file "input.in" as input for running the script. My worry is that i need to execute the script only if the file is present, if it's not don't perform the next commands.
Just to have a check at the beginning of the script : If "input.in" exists, then go on. If it's does not... (4 Replies)
Discussion started by: newpromo
4 Replies
2. Shell Programming and Scripting
Hey Fellas.
I am new to scripting. I have searched through the forums and found a lot of good info, but I can't seem to get any of it to work together. I am trying to find a particular sting in a file, and if the next string matches certain criteria, replace it with a string from a csv... (6 Replies)
Discussion started by: midniteslice
6 Replies
3. Shell Programming and Scripting
Hi,
I had input file with below data,
abcdefghij;20100903040607;1234567891;GLOBAL;
Having values of fields with seperated by semi-colon (;) and ended with line feed (\n).
Through shell script, how can I check the field formatting?
Thanks in advance. (18 Replies)
Discussion started by: Poonamol
18 Replies
4. Shell Programming and Scripting
HI all,
I want to script where all the server names will be in a text file like
server1
server2
server3 . and the script should take servernames from a text file and perform copy of files if the files are not present on those servers.after which it should take next servername till the end of... (0 Replies)
Discussion started by: joseph.dmello
0 Replies
5. Shell Programming and Scripting
Hi,
I have a script which runs daily. It gets 3 input files test1,test2,test3. I want to do a validation in my script to make sure i have all the 3 files available before running. If any one of the file is missing i want to break the script.
Could you please help me with this request.
... (1 Reply)
Discussion started by: Krrishv
1 Replies
6. Shell Programming and Scripting
Hello,
I have a comma delimited file such as:
cat /statistics/support/input.txt
ID,Serial,quantitity,atribute1,atribute2
1,89569698,5,800,9900,
1,35568658,8,1200,5550
1,89569698,8,320,5500
1,68753584,85,450,200
ID should always have 1 digit, Serial 8 digits, and the others may... (2 Replies)
Discussion started by: alex2005
2 Replies
7. Shell Programming and Scripting
Hello,
I have the following input file:
auditing account: 3DTP (3dtp)
ERROR: S3 bucket "aws-origin-test1.3dstage.com" has policy statement with public grant: {"Sid":"PublicReadGetObject","Effect":"Allow","Principal":{"AWS":"*"},"Action":,"Resource":}
auditing region: eu-west-1
auditing... (5 Replies)
Discussion started by: ramky79
5 Replies
8. Shell Programming and Scripting
I have a file number.txt.I need to get 2 inputs from the terminal like a=100 and b=200.If a and b are there in the file,then check if a < b,print "less".If a is not there in the file,print "a is missing" or if b is not there in the file,print "b is missing".
number.txt:
100 200 300 (2 Replies)
Discussion started by: aneeta13
2 Replies
9. UNIX for Beginners Questions & Answers
Hello,
I have two files of the following form. I would like to remove from File.A where the first three colum matches values in File.B to give the output in File.C
File.A
121 54321 PQR CAT
122 765431 ABC DOG
124 98765 ZXY TIGER
125 86432 GEF LION
File.B
122 765431 ABC
125 86432 GEF... (4 Replies)
Discussion started by: Gussifinknottle
4 Replies
10. UNIX for Beginners Questions & Answers
Hi ,
I'm looking for some code that can copy and paste form file1 to file2 with 2 criterial meet.
file1:
test "sp-j1"
test "sp-j2"
test "sp-j3"
test "sp-j4"
file2:
sub Pre_Shorts1 (Status_Code, Message$)
global Status
!if Message$ <> "" then print... (3 Replies)
Discussion started by: kttan
3 Replies
ZAWAY(1) General Commands Manual ZAWAY(1)
NAME
zaway - tell other people via Zephyr that you aren't around
SYNOPSIS
zaway [ OPTIONS ] [ FILE ]
DESCRIPTION
zaway provides a way for you to automatically send replies when other people contact you using zwrite(1). zaway subscribes itself to class
"MESSAGE", instance "*", so that it can monitor your incoming messages. It does not affect the operation of any other client receiving
messages. zaway is typically run when you are leaving your terminal or display temporarily. zaway usually never exits; when you return to
your terminal you should type the interrupt character (usually ^C) in order to make zaway exit.
OPTIONS
-m STRING
Use STRING as the body of the auto-reply message. Any message file (specified on the command line or the default) is ignored.
-w Watch the invoking user's location status. If the user is locatable anywhere, no auto-replies will be sent.
-h Displays a short usage message and exits.
zaway uses a message file (which defaults to $HOME/.away) to describe what reponses should be sent to which senders. The general format of
this file is:
>name
>name
message
>name
message
Any number of user names may be specified preceding the message to send to those senders. If a user name appears more than once, the mes-
sage will be a concatenation of each of the appropriate messages. There are two special names: "*" indicates that the following message
should be sent to all senders and "%" indicates that the following message should only be sent if the user name has not matched yet.
If no file is specified, and no default file can be found, the following message is returned:
I'm sorry, but I am currently away from the terminal and am not able to receive your message.
If a user name does not match any of those listed in the file, and no "*" or "%" field is specified, no return message is sent. All mes-
sages are preceded by a signature "Automated reply:". To avoid loops, messages are not sent in response to messages beginning with an
"Automated reply:" signature or sent by the same Kerberos principal as the user running zaway.
SAMPLE FILE
>eichin
>tony
Hi there guys! I'm in the other room right now.
I'll be back in 5 minutes or so.
>jruser
Sorry, but I'm gone for the day...
>%
Hello...I'm not sure who you are. I'll be back soon,
though.
>*
This message comes to you compliments of zaway!
The final "compliments" message will be included in all messages, whereas the "I'm not sure" message will only be included in messages that
are not from "eichin", "tony", or "jruser".
FILES
$HOME/.away
SEE ALSO
zephyr(1), zwgc(1), zwrite(1), zhm(8), zephyrd(8)
Project Athena Technical Plan Section E.4.1, `Zephyr Notification Service'
AUTHOR
Robert S. French (MIT-Project Athena)
RESTRICTIONS
Copyright (c) 1987,1988 by the Massachusetts Institute of Technology. All Rights Reserved.
zephyr(1) specifies the terms and conditions for redistribution.
MIT Project Athena July 1, 1988 ZAWAY(1)