Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: jaydeep_sadaria
1,777
Posted By jaydeep_sadaria
Day/Hour diff between two date
Its SunOS 5.10. Only -a and-u option available. Below is op of man date.


Reformatting page. Please Wait... done

User Commands date(1)

NAME
...
1,777
Posted By jaydeep_sadaria
Day/Hour diff between two date
Dear All

I need to find out day diff between two dates. date -d or date -- day is not working in mine system.

Currently i am using below code but it gives me wrong value while month change.
...
1,622
Posted By jaydeep_sadaria
Thanks dear... can u just brief me some what...
Thanks dear... can u just brief me some what about code so that it can be useful to me in further. How it compare?

Regards
Jaydeep
1,040
Posted By jaydeep_sadaria
Getting AWK syntex error. Regards Jaydeep
Getting AWK syntex error.

Regards
Jaydeep
1,622
Posted By jaydeep_sadaria
Compare between current and next line and print
Dear All

I want below to compare two Consecutive line(i.e. current and next line). Based in that i need OP. Below is the IP file in that in i find "M" and if in next line i find "*" then i need...
1,040
Posted By jaydeep_sadaria
Thanks for reply. But i am getting error in same....
Thanks for reply. But i am getting error in same.

However i had make some what simple by converting IP file as below by sorting and awk option.
In same i need to check if 3rd column is "M" in...
1,040
Posted By jaydeep_sadaria
Awk:String search more than one time and capture OP
Dear All

During one of mine script developemnt i am stuch at one sub part. Requiremnt is as below kindly help me.

IP file:
2015-02-28 10:10:15 AL M UtranCell UtranCell=RTE001X (unavailable)...
1,918
Posted By jaydeep_sadaria
p Thanks Akshay...u had always been a...
p

Thanks Akshay...u had always been a helping hand......
1,918
Posted By jaydeep_sadaria
Insert data in first column(if blank) from previous line fisrt column
Its working with nawk.
Thanks.

Regards
Jaydeep

---------- Post updated at 07:34 PM ---------- Previous update was at 07:17 PM ----------

Hi

I had one more same file in which I need to...
1,918
Posted By jaydeep_sadaria
Insert data in first column(if blank) from previous line fisrt column
Hi

gsub is not working in mine system. Kindly help.


awk 'NF==6{sub(/^ +/," "b" ")};{b=$1}1' op.txt
awk: syntax error near line 1
awk: illegal statement near line 1
awk: syntax error near...
1,918
Posted By jaydeep_sadaria
Insert data in first column(if blank) from previous line first column
Dear Team

I need to insert field(which is need to taken from previous line's first field) in first column if its blank. I had tried using sed but not find the way. Detail input and output file as...
1,043
Posted By jaydeep_sadaria
String capture from ip file
Dear All

From below mention input file I want op file as mention. Kindly help.

IP file:
"BSCGNR4_IPA17_C" 329 140119 0717 RXOCF-105 KJO001_BASC_NG AC FAULTY DG ON DOOR OPEN

Needed OP:...
806
Posted By jaydeep_sadaria
String removal from file
Dear all

From below mention input file I needed op file as show below. I am using below code but not worked.


I/p file

BSCBCH1 EXAL-1-4 WO* SMPS MAINS FAIL
BSCBCH1 EXAL-1-5 WO*...
1,047
Posted By jaydeep_sadaria
awk help string capture
Kindly find the error and result for 1st code as below.

jaydsada@ideauas23> cat g.txt
"BSCJNGR_IPA17_C" 030 131207 1305 RXOCF-353 PBD011_BGIL BOTH AC FAULTY
"BSCJNGR_IPA17_C" 991 131207 1637...
1,047
Posted By jaydeep_sadaria
awk help string capture
Dear All

First code take space as delimiter and second one is given error.

Kindly suggest some another alternative.

Regards
Jaydeep
1,047
Posted By jaydeep_sadaria
awk help string capture
Dear All

My input file as under. From it I want op fine as mention below. Kindly help. I use below code but not help.

code:
awk -F" " '{print $2}'

ip file:
"BSCJNGR_IPA17_C" 030 131207...
1,424
Posted By jaydeep_sadaria
Diff between two time in hours in last column
Dear Akshay

Thanks. Can u plz guide me for below help.

sh diff.sh
diff.sh: syntax error at line 2: `<' unexpected

Regards
Jaydeep
1,424
Posted By jaydeep_sadaria
Diff between two time in hours in last column
Dear Akahay..

Sry. I was in hurry. nwak gives error of mktime is undefined function. What can be done? Can you guide me what is wrong in while loop code.

nawk '{s=$1 " "$2;t=$3"...
1,424
Posted By jaydeep_sadaria
Diff between two time in hours in last column
Dear Akahsy

For while loop tag following error occur. Help. Last error but I cant find.

sh diff.sh
diff.sh: syntax error at line 2: `<' unexpected
atisdosh@gumas1n:~/PROJECT/Format_SMS$cat...
1,424
Posted By jaydeep_sadaria
Diff between two time in hours in last column
Dear Akshay

That nice. Only one part remaining is considering of date also. 2 line had a previous day date. In that case what can b e solution?


2013-11-23 15:51:23 2013-11-23 12:20:06 BRC023...
1,424
Posted By jaydeep_sadaria
Diff between two time in hours in last column
Dear All

I want to diff between two time(FIRST 4 COLUMN) in hours in last column. Kindly help me for same.

2013-11-23 15:51:23 2013-11-23 12:20:06 BRC023 CG
2013-11-23 15:51:23 2013-11-23...
2,687
Posted By jaydeep_sadaria
String search and print next all lines in one line until blank LINE
Dear all

Kindly suggest for below. Needed op in one line.

awk '/A1\/EXT/{ p=$2 OFS $3 OFS $4 OFS $5 } /EXTERNAL ALARM/{$1=$2=x; p=p OFS $0; print p}' RS = i/pfile
-- this give only first line...
2,687
Posted By jaydeep_sadaria
String search and print next all lines in one line until blank LINE
Dear all

one more of similir proble. i used below code but it does not give complete result to me.

awk '/A1\/EXT/{ p=$2 OFS $3 OFS $4 OFS $5 } /EXTERNAL ALARM/{$1=$2=x; p=p OFS $0; print p}' RS...
2,687
Posted By jaydeep_sadaria
Second code is working.....
Second code is working.....
2,687
Posted By jaydeep_sadaria
String search and print next all lines in one line until blank line
Dear all

I want to search special string in file and then print next all line in one line until blank lines come. Help me plz for same. My input file and desire op file is as under.

i/p file:
...
Showing results 1 to 25 of 64

 

Featured Tech Videos

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