Search Results

Search: Posts Made By: tomjones
1,751
Posted By tomjones
difference between two files
i have two files A and B and i want the difference to be printed in file C

as in example below

File A

10E32E7BCC5881DDB6||002878|1|1|
10E32E7BCC5881DDB7||002878|1|1|...
1,516
Posted By tomjones
joining two or more files
i have three files

file a has contents

123
234
238

file b has contents

189
567
567

and file c has contents

qwe
ert
ery
8,365
Posted By tomjones
print lines from a file containing key word
i have a file containing over 1 million records,and i want to print about 300,000 line containing a some specific words.

file has content.
eg

1,rrt,234
3,fgt,678
4,crf,456
5,cde,drt...
28,484
Posted By tomjones
Scrutinizer, yours worked perfect for me. Thank...
Scrutinizer, yours worked perfect for me.
Thank you all
28,484
Posted By tomjones
i get this output (dest 1700 Thu, Jun 24, 2010...
i get this output
(dest 1700 Thu, Jun 24, 2010 04:41:38 PM)

but i wanted this format
(dest,1700,20100624044138)

any way i can do this,i need the comma to seperate them
28,484
Posted By tomjones
using awk to print date
i want to use awk to print the first,second and add date as third column in a file

awk -F"|" ' { print $1,$2,current date }' tom.unl >> top.txt

how can i achieve this,i need the comma's to...
Forum: HP-UX 06-22-2010
7,348
Posted By tomjones
maximum telnet sessions
Currenly my hp-ux server can take the default of 60 telnet connections,
i want to know how i can increase this. and also can i effect such changes without doing a reboot.
My server is HP-UX B.11.23
53,511
Posted By tomjones
it worked thanks to you all
it worked thanks to you all
53,511
Posted By tomjones
Four decimal places with awk
i have a script in which awk prints "($2-1700)/10000"
and the answer is -0.07,but i want the answer in 4 decimal places.
that is -0.0700.
How can i sue awk to get my results in four decimal places
1,653
Posted By tomjones
how can i use this script to read about 100 or...
how can i use this script to read about 100 or more txt file and output the same message
1,653
Posted By tomjones
read from different files
i have the following files with content

file a content;

1234|wert|

file b content;

2345|byte|

file c content;

9999|kilo|

i want to read the contents of three files seperately and...
9,820
Posted By tomjones
Thank you
Thank you
9,820
Posted By tomjones
prevent running of duplicate scripts
i have a script tool.sh,but i want to include a script within it that checks if tool.sh is already running,if already running then the new one called should exit,but if not then the new one should...
1,599
Posted By tomjones
thanks so much ---------- Post updated at...
thanks so much

---------- Post updated at 02:15 PM ---------- Previous update was at 01:34 PM ----------

Franklin,
sorry but i actually want the numbers in double quotes
like ...
1,599
Posted By tomjones
awk help
I have a files containing varying contents like
file a has content

2334|abc
2335|asd
2336|wer
2345|wdf

file b has content

1234|dfg
1235|fgh
1236|ghj
1235|fgj
1237|vbn
1278|wdh

i...
2,250
Posted By tomjones
it worked. thank you ---------- Post updated...
it worked. thank you

---------- Post updated at 01:10 PM ---------- Previous update was at 01:05 PM ----------

I have a files containing varying contents like
file a has content

2334|abc...
2,250
Posted By tomjones
quotes using awk
i want to print the statement below using awk,but i am unable to get the quotes

("22345",1,"Thank you");

How can i do this
7,449
Posted By tomjones
Thank you,its perfect now
Thank you,its perfect now
23,482
Posted By tomjones
how do i get or start using the date cal per...
how do i get or start using the date cal per module
7,449
Posted By tomjones
D=`perl -le "print scalar localtime (time() -...
D=`perl -le "print scalar localtime (time() - "50"*60);"`
echo $D

D1=`perl -le "@x=localtime (time() - "50"*60); printf(\"%4d%02d%02d%02d%02d%02d\n\",...
7,449
Posted By tomjones
I tried it and this was my output ...
I tried it and this was my output

107382063610738185091074160772107416091610741609521074160988


think there is somthing wrong
23,482
Posted By tomjones
i dont seem to get the printf code working. may...
i dont seem to get the printf code working.
may be you can help by completing the code i sent,so i can echo out the new date.
7,449
Posted By tomjones
Time subtraction using perl
var=50
perl -le "print scalar localtime (time() - "$var"*60);"

The above does subtraction of time,but i need the time format to be

date...
23,482
Posted By tomjones
Frans, my script looks like this ...
Frans,
my script looks like this

#!/bin/ksh
D=`date +%Y%m%d%H%M%S`
D1=`date -d "now 2 minutes ago"`
echo $D1

But it does not work for me. i need D1 to be 2 minutes ago
23,482
Posted By tomjones
Frans, i am having difficulty using it in a...
Frans,
i am having difficulty using it in a script.
Please how do i go about it
Showing results 1 to 25 of 72

 
All times are GMT -4. The time now is 11:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy