03-03-2009
Thank you guys. That worked perfectly. Appreciate it.
regards,
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi,
for reading a cobol indexed file i need to convert "mmddyy" date format to "ccyyddd" format.
i checked the datecalc and other scripts but couldnt modify them to cater to my need:(...
The datecalc gives an output which i believe is the total days till that date, but i want to convert it... (2 Replies)
Discussion started by: Bhups
2 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
Need your help in converting a date format in ksh.
I'm currently working on SUN os where my script is getting a date from a table.
The result returns to ksh in this format: 17-JUL-08
How do i convert this string to a date format like yyyymmdd?
I tried #!/bin/ksh
d="17-JUL-08"... (5 Replies)
Discussion started by: agathaeleanor
5 Replies
3. Shell Programming and Scripting
I have a file named "suspected" with series of line like these :
{'protocol': 17, 'service': 'BitTorrent KRPC', 'server': '219.78.120.166', 'client_port': 52044, 'client': '10.64.68.44', 'server_port': 8291, 'time': 1226506312L, 'serverhostname': ''}
{'protocol': 17, 'service': 'BitTorrent... (3 Replies)
Discussion started by: rk4k
3 Replies
4. UNIX for Dummies Questions & Answers
I have a list of dates in the following format: mm/dd/yyyy and want to change these to the MySQL standard format: yyyy-mm-dd.
The dates in the original file may or may not be zero padded, so April is sometimes "04" and other times simply "4".
This is what I use to change the format:
sed -i '' -e... (2 Replies)
Discussion started by: figaro
2 Replies
5. Shell Programming and Scripting
I've been using this thread:
https://www.unix.com/shell-programming-scripting/58675-change-date-dd-mmm-yyyy-mm-dd-yyyy.html
and
https://www.unix.com/shell-programming-scripting/14655-changing-yyyy-mm-dd-ddmmyy.html
and this code:
on this format:
05/16/2008 18:30:49 Installation 48985and I'm... (3 Replies)
Discussion started by: dba_frog
3 Replies
6. Shell Programming and Scripting
The date format in the delimited file for one column '6/27/2011 12:00:00 AM' Is it possible o change it to '2011-06-27 12:00:00 AM' for all the records..
Thanks in advance..... (8 Replies)
Discussion started by: infernalhell
8 Replies
7. Shell Programming and Scripting
The 6th & 7th column of the text files represents date & time. I need this to be converted in julian format using command "date +%s -d <date>". I know the command, but dont know how to use it on the script
0 dbclstr-b IXT_Web Memphis_Prod_SQL_Full Memphis-Prod-SQL-Full-Application-Backup... (4 Replies)
Discussion started by: ajiwww
4 Replies
8. UNIX for Dummies Questions & Answers
Hi Unix Gurus,
I would like to rename several files in a Unix Directory . The filenames can have more than 1 underscore ( _ ) and the last underscore is always followed by a date in the format mmddyyyy. The Extension of the files can be .txt or .pdf or .xls etc and is case insensitive ie... (1 Reply)
Discussion started by: pchegoor
1 Replies
9. Shell Programming and Scripting
Hello,
I want to change the format of date value in variable.
e.g. cur_date = '2013/03/13 14:24:50' (yyyy/mm/dd hh24:mi:ss)
I want to change this to '13-MAR-2013 14:24:50
Following code coverts the current date to format I am looking for. But I do not know how this can be done for a date... (8 Replies)
Discussion started by: cartrider
8 Replies
10. Shell Programming and Scripting
Hi guys
I am looking to convert this kind of entry in a txt file
26/04/2008
to
April 2008
Note : this is not using the date command , these are date entries in a file
can i do this with sed ?
Use code tags, thanks. (5 Replies)
Discussion started by: johnnybananas
5 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)