02-10-2011
This is what I am getting:
HTML Code:
# awk -v t=$today 'NR==3 { d=substr($1,1,8);i=substr($1,9,2); $1=(t==d)?d i+1 ";" :t "01;" }1' db.gprs > tmp
bash: tmp: cannot overwrite existing file
#
Can you pointg out where I an going wrong?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I am new to scripting.
my requirement is ,
I want to know whether the file(i.e., log file) is updating or not.
It should search for every 15 min. If it is not updating means it needs to send out a automatic mail.
can you please help me in this. (2 Replies)
Discussion started by: raj333
2 Replies
2. Shell Programming and Scripting
Hello,
I read and search through this wonderful forum and tried different approaches but it seems I lack some knowledge and neurones ^^
Here is what I'm trying to achieve :
file1:
test filea 3495;
test fileb 4578;
test filec 7689;
test filey 9978;
test filez 12300;
file2:
test filea... (11 Replies)
Discussion started by: mecano
11 Replies
3. UNIX for Advanced & Expert Users
Hi
in my solaris 9 system wmptx file is not updating so it is not recording any login or logout or any other entry.
can any one tell me how to solve this problem (0 Replies)
Discussion started by: aaysa123
0 Replies
4. UNIX for Dummies Questions & Answers
Hi Experts,
I have a requirement where i need to update the below items in file,
1. END TIME
2. PREV_STATUS
For the first time the PREV_status and end time of all job the job will be sysdate & NULL reply as below,
Session_name,Load Type,Frequency,Seesion End time,Prev_Status... (2 Replies)
Discussion started by: prabhutkl
2 Replies
5. Shell Programming and Scripting
I have a file ("modtest") in which I want to update the last date/time block in the lines beginning with a period. Here is a sample:
.ROMULT 10150908EDT 10270908EDT 10010908EDT RANGE
RAWV2 1.00
.ROMULT 10150908EDT 10270908EDT 10010908EDT FGROUP
CHOWANRV 1.00
.RRIMULT 10150908EDT... (10 Replies)
Discussion started by: chrismcg24
10 Replies
6. Shell Programming and Scripting
Hi All,
Thaks for the help in my last thread. I have one more question. I have two files with ldap entries in it. One file contains all the user LDAP parameter entries (26 MB) and other file contains only the user id's that have to be inactivated. Unix script has to read from the file that has... (8 Replies)
Discussion started by: Samingla
8 Replies
7. Shell Programming and Scripting
Hi All,
I am very new to UNIX and I have tried this for a longtime now and unable to crack it....
There is a file that is continuously updating. I need to search for the string and find the date @ which it updated every day.....
eg:
String is "work started"
The log entry is as below:
... (1 Reply)
Discussion started by: Nithz
1 Replies
8. Shell Programming and Scripting
I can not seem to figure out how to update the attached match.txt column 2 using update.txt. However, only the text before the period in updat.txt appears in match.txt.
For example, in update.txt NM_001613.2 matches NM_001613 in match.txt, so is it possible to update the record in match.txt to... (8 Replies)
Discussion started by: cmccabe
8 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I have a below requirement and need your help in this regard.
I have two timestamps in a file i.e.
TimeBefore=2014-07-10.18.06.55
TimeAfter_1=2014-07-09.05.45.12
TimeAfter_2=2014-07-09.05.40.12
When I first run the script file, it sets the 'TimeBefore' to todays date.
When I run... (5 Replies)
Discussion started by: vrupatel
5 Replies
10. UNIX for Beginners Questions & Answers
hi,
i have an csv(which is a month's log file containing userid and log in date ) file which has to be appended to another file say master.log.I need to compare the next month's log data to master.log file .In case, there is new log date for userid it has to get updated in master.log file or i... (2 Replies)
Discussion started by: preema
2 Replies
LEARN ABOUT DEBIAN
svn::svnlook
SVN::SVNLook(3pm) User Contributed Perl Documentation SVN::SVNLook(3pm)
NAME
SVN::SVNLook - Perl wrapper to the svnlook command.
SYNOPSIS
use SVN::SVNLook;
my $revision = 1;
my $svnlook = SVN::SVNLook->new(repo => 'repo url',
cmd => 'path to svn look');
my ($author,$date,$logmessage) = $svnlook->info(revision => $revision);
print "Author $author
";
print "Date $date
";
print "LogMessage $logmessage
";
DESCRIPTION
SVN::SVNLook runs the command line client. This module was created to make adding hooks script easier to manipulate.
METHODs
youngest
youngest ();
Perform the youngest command on the repository. Returns the revision number of the most recent revision as a scalar.
info
info (revision=>$revision);
Perform the info command, for a given revision or transaction using named parameters, or a single parameter will be assumed to mean
revision for backwards compatibility. The information returned is an array containing author, date, and log message. If no $revision is
specified, info for the youngest revision is returned.
author
author (revision=>$revision);
Perform the author command, for a given revision or transaction using named parameters or a single parameter will be assumed to mean
revision for backwards compatibility. The information returned is the author message. If no $revision or transaction is specified, author
for the youngest revision is returned.
dirschanged
dirschanged (revision=>$revision)
Performs the dirs-changed command, for a given revision or transaction using named parameters, or a single parameter will be assumed to
mean revision for backwards compatibility. This method returns a boolean and an array reference.
fileschanged
fileschanged (revision=>$revision)
Performs the changed command, for a given revision or transaction using named parameters or a single parameter will be assumed to mean
revision for backwards compatibility this method returns 3 array references added, deleted and modified.
diff
diff (revision=>$revision)
Performs the diff command, for a given revision or transaction using named parameters or a single parameter will be assumed to mean
revision for backwards compatability this method returns a hash reference, with each file being the key and value being the diff info.
AUTHOR
Salvatore E ScottoDiLuzio, <sal.scotto@gmail.com> Contributions by Kevin Semande
COPYRIGHT
Copyright 2005 Salvatore E. ScottoDiLuzio. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2009-12-10 SVN::SVNLook(3pm)