06-23-2008
Thanks guys, I will try them both.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I am newbie and hope that you can help me to rename a file
If I have a file name Perform.01222006.12345.Log now I would like to backup another file with another name like perform-20060112.dat
This is a flat file, and I want to collect some field, then put it in a new file from... (9 Replies)
Discussion started by: sabercats
9 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
I'm trying to run a simple shell program to change all the files named *.cvs to *.txt. I am trying to use WHILE and this is what I have so far:
This changes the first file from *.cvs to *.txt, but it is not cycling through the other files.
My suspicion is that I don't have the... (5 Replies)
Discussion started by: ScKaSx
5 Replies
3. Shell Programming and Scripting
Hi all,
I have a list of xml file. I need to split the files to a different files when see the <ko> tag.
The list of filename are
B20090908.1100-20090908.1200_CDMA=1,NO=2,SITE=3.xml
B20090908.1200-20090908.1300_CDMA=1,NO=2,SITE=3.xml
B20090908.1300-20090908.1400_CDMA=1,NO=2,SITE=3.xml
... (3 Replies)
Discussion started by: natalie23
3 Replies
4. Shell Programming and Scripting
I have 100 files in a directory with
a.1
a.2
a.3
a.4
How do i remove a. and i need the file names as
1
2
3
4
please help (2 Replies)
Discussion started by: srichunduru
2 Replies
5. Shell Programming and Scripting
Hi,
i have files which contains list of csv file names
say temp.txt contains below like data
Dns_bangalore_08172011.093033.1139.csv
Dns_bangalore_08172011.093133.1139.csv
now i want to insert some string before .csv in the filename
say i want to insert string _sim1 beofre .csv... (3 Replies)
Discussion started by: raghavendra.nsn
3 Replies
6. Shell Programming and Scripting
Hi guys,
I have a variable where i am storing the filename (with full path).
I just need the value before ".txt". But instead of getting the filename i am getting the contents of the filename.
FileName=/appl/data/Input/US/Test.txt
a=`awk -F"." '{print $1}' ${FileName}`
echo $a... (3 Replies)
Discussion started by: mac4rfree
3 Replies
7. UNIX for Dummies Questions & Answers
Hi
i want to list files based on date and change the date alone in the files in a directory
abc20120101.txt
xyzxyxz20120101.txt
ccc20120201.txt
ddd20120301.txt
In the above i want to select only files having date 20120101 and rename the date for those files like below
abc20111231.txt... (3 Replies)
Discussion started by: Dewdrop
3 Replies
8. Shell Programming and Scripting
I have a bunch of files, they have spaces! I am working in windows 7, but I am hoping I could install and use cygwin or some other unix platform to rename my files (suggestions welcome).
The files are named:
Wind Attn Vol - 474.wrl
Wind Attn Vol - 475.wrl
Wind Attn Vol - 476.wrl etc..
I... (10 Replies)
Discussion started by: d_sai_kumar
10 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
Thanks in Advance
I am working on a shell script. I need some assistance.
My Requirement:
1) There are some set of files in a directory like given below
OTP_UFSC_20120530000000_acc.csv
OTP_UFSC_20120530000000_faf.csv
OTP_UFSC_20120530000000_prom.csv... (0 Replies)
Discussion started by: aealexanderraj
0 Replies
10. Programming
Hi All,
Thanks in Advance
I am working on a shell script. I need some assistance.
My code:
if
then
set "subscriber" "promplan" "mapping" "dedicatedaccount" "faflistSub" "faflistAcc" "accumulator"\
"pam_account";
for i in 1 2 3 4 5 6 7 8;... (0 Replies)
Discussion started by: aealexanderraj
0 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)