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...
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...
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...
Hi,
Does anybody have a solution to mailing 8-bit chars?
I'm trying to mail (using mailx) the "£" symbol, but it does not reach its destination.
Is there a solution?
Thanks in advnace for any help.
Hi all,
Can anyone help with my problem?
I have a script where I need to find
a) pattern1 in file x
b) get next line details
c) If substr != PMS_GEN then
d) if substr = PMS_DEL or substr = PMS_ADD printf
Here's what I have so far which works fine:
awk '/PATTERN1/ {
if ( $7 ~...
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.