Search Results

Search: Posts Made By: streddy
1,044
Posted By streddy
u r a genius man... but can pls explain...
u r a genius man...

but can pls explain whats the line actually means?

'NF>3{print $1,$3/1800 ;next}1'


Please use and tags when posting code, data or logs etc. to preserve formatting...
1,044
Posted By streddy
how will it break this to half hourly data with...
how will it break this to half hourly data with this command

---------- Post updated at 06:18 PM ---------- Previous update was at 06:13 PM ----------

ok ok i got it... it works with nawk...
...
1,044
Posted By streddy
Reading next line
Hello guys,

Need some help below is my input file..

01:00
LK1 188345376 277847504 466192880
LK2 163245288 12267736 175513024
LK3 ...
1,338
Posted By streddy
Hi Zaxxon, Thanks. Sorry for being very...
Hi Zaxxon,

Thanks. Sorry for being very brief in my description. Here is more details.

Actually the calculation is already by a system and output files are generated in a file.

e.g
...
1,338
Posted By streddy
If-then-else
Dear experts,

Here is a small description of my problem.

Every 30s call is charged 200 cents.

e.g 1. if customer A makes a 90s call, he shud be charged 600 cents
2. If customer makes a 240s...
8,454
Posted By streddy
Guys, thanks. it works with ksh. & Metyl thanx...
Guys,
thanks. it works with ksh. & Metyl thanx for the alternative solution. I will need that as well.

thanks

---------- Post updated 01-08-11 at 07:21 AM ---------- Previous update was...
8,454
Posted By streddy
Hi Methyl, None of those worked. Yes i am...
Hi Methyl,

None of those worked. Yes i am using Unix shell script.

thanks.

---------- Post updated at 12:00 AM ---------- Previous update was at 12:00 AM ----------

OS using SUn Solaris...
8,454
Posted By streddy
If then else for decimal numbers part2
Hi,

I have a small problem with my script. I have everything in order but it doesnt seem to compare anything less than 1 correctly. If the input is more than 1, then the results is correct.

If...
2,403
Posted By streddy
doesnt work
doesnt work
2,403
Posted By streddy
To merge a few lines to 1 line
Hi Experts,

This is my input file.

input.txt

0 /dev/fd
25 /var
1 /tmp
1 /var/run


1. If this file has single line, then leave it, print the single line

else

merge the 4 lines...
2,365
Posted By streddy
Hi guys, You guys are execellent man. Thanks...
Hi guys,

You guys are execellent man. Thanks loads... only i was naive to use the codes given. its damn simple using awk. Thanks again.

rgds

---------- Post updated at 02:43 PM ----------...
4,099
Posted By streddy
i realise its not taking the data from my input...
i realise its not taking the data from my input file.
4,099
Posted By streddy
rohon, i get this output. output seems ok...
rohon,

i get this output. output seems ok whr my input file has the value 3.4

whats the error ./str %:not found?

temp=/tmp/st
+ % [[ /tmp/st -gt 0.1 ]]
./str: %: not found
+ echo KO
KO
4,099
Posted By streddy
Rohon, if my condition which i am performing...
Rohon,

if my condition which i am performing also has . how do i do that?

-gt 0.1
4,099
Posted By streddy
Condition for decimal numbers
Hi experts,

My number output has somehting like below

filename /temp
0.23
10.23

How do i put a condition to the above numbers?

e.g

if [ $temp > 0.1 ] then

the . seem to give me...
2,365
Posted By streddy
Thanks guys. will try shortly
Thanks guys. will try shortly
2,365
Posted By streddy
this is my script now. #!/usr/bin/sh -x ...
this is my script now.

#!/usr/bin/sh -x

exec < /tmp/tesmp
while read LINE; do
if [ `cat $LINE | awk '$2 > 1'` ]; then
echo ${LINE} >> /tmp/test3
fi
done


the output im getting...
2,365
Posted By streddy
hi codecaine, the below doesnt work. can u...
hi codecaine,

the below doesnt work. can u pls put this into a correct code?
tesmp=
01:29:25 100
01:29:35 0
01:29:45 20
01:29:56 0
01:30:06 0
01:30:16 0
01:30:26 0
01:30:36 0
01:30:47 0...
2,365
Posted By streddy
If then else using unix
Dear experts i need some help here.

my input file is as below; denoted by $temp in the code

01:29:25 100
01:29:35 0
01:29:45 20
01:29:56 0
01:30:06 0
01:30:16 0
01:30:26 0
01:30:36 0...
Forum: Solaris 06-04-2009
4,905
Posted By streddy
How grep only the capacity infor from df -k using sun solaris
Hello experts,

when i get an output for df -k;

i get the below output

Filesystem kbytes used avail capacity Mounted on
/dev/vd/vdisk3 8241689 1973089 6186184 25% ...
2,326
Posted By streddy
How to more only the last file in the directory?
Hi ,

I am writing a script to more the last file (output file) in the specified directory.

Things have to be considered is, the output file written has the time of the file been executed. So i...
Showing results 1 to 21 of 21

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