Search Results

Search: Posts Made By: Gaurav198
4,076
Posted By Gaurav198
Column wise text adding
Hi I have pasted sample data as below:- in data.txt

Please suggest any way out: as the 3rd field is

cat data.txt
22:37:34 STARTING abc
22:37:40 FAILURE sadn
00:06:42 STARTING ...
2,663
Posted By Gaurav198
Thanks a ton Bala and Siva..appreciate your help...
Thanks a ton Bala and Siva..appreciate your help on this :)
2,663
Posted By Gaurav198
Thanks Bala any way via Shell?
Thanks Bala any way via Shell?
2,663
Posted By Gaurav198
Opps!! Thanks guys :) :b: works now ...
Opps!! Thanks guys :) :b: works now

---------- Post updated at 09:01 PM ---------- Previous update was at 08:06 PM ----------

One more update to it.

the output should be in format
$state3...
2,663
Posted By Gaurav198
here's the error expr: syntax error expr:...
here's the error

expr: syntax error
expr: syntax error
expr: syntax error
expr: syntax error
expr: syntax error
expr: syntax error
expr: syntax error
expr: syntax error
expr: syntax error...
2,663
Posted By Gaurav198
Subtraction while reading a variable value
Hi Guru's

i have a file which contains data as below(file.txt) and an inital value 8725

403
352
462
359
317
347
414
285
308
350
...
3,381
Posted By Gaurav198
Thank You Tyler!!! really appreciate your help on...
Thank You Tyler!!! really appreciate your help on this...

I did worked onto shell and found a working solution as well !! CHEERS!!!

#! /usr/bin/ksh
M=`date +%m`
Y=`date +%Y`
# ...
3,381
Posted By Gaurav198
Thanks Tyler i did check with OS, blogged online...
Thanks Tyler i did check with OS, blogged online and found that we have perl yeah!!!! now few things pending are
could you please share how do capture the var1 and var2 values?
i have to take them...
72,089
Posted By Gaurav198
use the steps below: save txt in a file $ cat...
use the steps below:
save txt in a file
$ cat g
1
2
3
4
5
6
$ cat g |fmt|cut -c2-9
2 3 4 5
3,381
Posted By Gaurav198
Hi Felipe....did check with this long...
Hi Felipe....did check with this long back...support diffrent format..
I had this one , but works for on year difrrence..i want to work in month diffrence format...


#! /usr/bin/ksh
# ...
3,381
Posted By Gaurav198
Thanks Tyler and MacMonmster...for the response. ...
Thanks Tyler and MacMonmster...for the response.
I am on sunos and dont have perl.
Bash script is fine, but the -d optionwith date wont work.Macmonster is there any other way to find solution?
3,381
Posted By Gaurav198
How to Find number of days in a month in mmddyyyy format?
Hi Guru's,

I am working on a shell script from past a month and unable to get rid of automating while working with dates,here's what i have.

inital_date=11012011
final_date=11302011
...
Showing results 1 to 12 of 12

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