Hello all,
I have a script which takes a telephone nummber as its only variable i.e script 01256123456.
I would like to test that the variable given is
a) populated
b) all numeric, and
c) no greater than 11 chars in length.
I can test b and c, but not a, as if the script is run without a...
Thanks feherke thats worked, although i've had to copy the files into a server with gawk.
I made one slight change and that was to print $0 before it prints out the results.
Thanks again.
Thanks sbrews.
Unfortunatley the transactionstimes are from a log file, so its an historical check
I was thinking of trying to convert the strings to an epoch value, and subtracting the end from the start. Does that sound a good way? I'm using hpux 11, is there an easy(1) to get the epoch...
Hi,
I need to calulate how long a 'transaction' took to complete. I have the start and end times in format yymmddhhmmssss for example;
Start,end
06111500010000,06111500010000
06111500004300,06111500010000
The problem I have is that I can find no way of converting this so that it takes the...
Thanks olded and annihilannic, but i'm going to stick with the awk option. I need to run this against 30 files containing between 80-120k records, and awk is so much faster.
thnaks again.
Hello
I have the following which although works, runs very slowly. Can anybody help with a better/faster approach?
i'm trying to find out the concurrent rate of transactions
Thanks.
input file
==========
start date/time , end date/time
0610060000580,0610060001000
0610060000580,0610060001000...
Hi,
I have a table that holds data for the whole days transactions. Each record has a date/time entry.
i.e trans1,user,date/time
I would like to count how many transaction i have received per hour. Could somebody explain the correct way to do this please.
Thanks in advance for any help...
Hi,
I'm trying to add 17 new lines after a certain string is found. The string is located on line 94 of a 233 line file.
I've found the following, which adds the new lines correctly, but does not write lines 96-233 to the output file:
awk '1;$1=="name=mark"{exit}END{print "name2=scott\n...
Hi,
I have a problem with a file containing "£". The file itself is created under oracle/Tru64 and transfered (ftp) to redhat linux. all this works fine, however when its pushed through a tomcat process it translates the "£" as "?". I've found a workaround and thats to vi and write quit the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.