Search Results

Search: Posts Made By: vivekn
3,516
Posted By vivekn
Some unmatched record in output
HI,

I used below script but its also include some record which not matched with any condition as given in first post.


Record1|Record2|Record3|Record4|Record5|DATE1|DATE2
...
3,516
Posted By vivekn
working now
Thanks , i use following awk command to check date format DDMMYYYY, it works:

awk -F'|' -v OFS='|' ' $6 !~ "^(0[1-9]|[12][0-9]|3[01])(0[1-9]|1[012])((19|20)[0-9][0-9])$" || $7 !~...
3,516
Posted By vivekn
DATE Format check
Sorry for that I convert files dos2unix it worked.

i use following awk command:

awk -F'|' -v OFS='|' ' $6 !~ "^(0[1-9]|[12][0-9]|3[01])(0[1-9]|1[12])[0-9]{4}$" || $7 !~...
3,516
Posted By vivekn
required following
If any of the field value is set as 0, except Record4

Example:
Record1|Record2|Record3|Record4|Record5|DATE1|DATE2
Record1 = 0 or ‘00000000’
Record2 = 0 or ‘0000000000’
Record3 = 0 or...
5,333
Posted By vivekn
Command to check date format DDMMYYYY
Record:
Record1|Record2|Record3|Record4|Record5|DATE1|DATE2

Need to Check DATE1 & DATE2 is in DDMMYYYY format in a file.

records which not meet the date format DDMMYYYY extract to other file.
3,516
Posted By vivekn
Script to check field value from a file records
I need a script to check the records in a file , if any value match transfer the record in error.txt file.


1- If any of the any field value is NULL(nothing in this field)
...
6,456
Posted By vivekn
Worked
Great it worked, Thanks alot
6,456
Posted By vivekn
thanks, I need output in following format ...
thanks, I need output in following format

03:46:40
6,456
Posted By vivekn
Calculate time difference between two lines
i grepped the time stamp in a file as given below

now i need to calculate time difference

file data:

18:29:10
22:15:50
1,963
Posted By vivekn
log file rotation
there is log file rotation , a new file created in every half n hour with time stamp.
1,963
Posted By vivekn
Grep a pattern & Email from latest logs
MyLOG:

2017/11/12 17:01:54.600 : Error: LPID: 3104680848 WRONG CRITERIA FOUND. tRealBuilder::Generate

Output Required:

If Ke word "WRONG CRITERIA FOUND" in latest log ( logs are regularly...
4,850
Posted By vivekn
Thanks alot it's worked, help me for my...
Thanks alot it's worked, help me for my organization work..
4,850
Posted By vivekn
Calculating Time difference Between two Rows in Linux
16:45:51 10051 77845
16:45:51 10051 77845

16:46:52 10051 77846
16:46:53 10051 77846

Match the last PID then subtract second line time with first line.


Please help me with any...
1,287
Posted By vivekn
It on rhel7 ---------- Post updated at 07:25...
It on rhel7

---------- Post updated at 07:25 AM ---------- Previous update was at 05:03 AM ----------

Assignment,

Tried some awk command, but no success
1,287
Posted By vivekn
Subtract time in two line
INPUT:

16:45:51 10051 77845
16:45:51 10051 77845

16:46:52 10051 77846
16:46:53 10051 77846

Match the last PID then subtract second line time with first line.


Please help me with...
Showing results 1 to 15 of 15

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