Search Results

Search: Posts Made By: ajiwww
4,561
Posted By ajiwww
its not giving any error, but giving wrong data....
its not giving any error, but giving wrong data. all the converted date is showing a value "1315962000"

output
------
0 ebs-sql1-b EBSCClaimStore Memphis_Prod_SQL_Diff...
4,561
Posted By ajiwww
its not recognizing the comma parameter that is...
its not recognizing the comma parameter that is been specified in the command
awk '{print $1,$2,$3,$4,$5; system("date +%s -d $6,$7")}'

here is the output
0 ebs-sql1-b xxxxxxxxxxxxx...
4,561
Posted By ajiwww
Need a unix script to convert date into Julian format in a text file
The 6th & 7th column of the text files represents date & time. I need this to be converted in julian format using command "date +%s -d <date>". I know the command, but dont know how to use it on the...
1,911
Posted By ajiwww
thanks for the script, its partially successful...
thanks for the script, its partially successful :b:

its not checking columns 2 - 5 of fileA is exactly same as in fileB :wall:
date and time wise checking is perfect

---------- Post updated at...
1,911
Posted By ajiwww
CONDITIONS --------------- values from...
CONDITIONS
---------------
values from columns 2 to 5 of a raw of fileA is exactly the same as fileB
if the above condition met, then
6th & 7th columns (date & time) of each raw of fileA is...
1,911
Posted By ajiwww
i need to compare the 6th & 7th (date & time)...
i need to compare the 6th & 7th (date & time) column of each raw of fileA with fileB. If the values are higher, then paste the output on new file fileC and of not, paste it on fileD
1,911
Posted By ajiwww
compare date and time inside data of two files
i have two files with identical no of columns. 6th columns is date (MM/DD/YY format) and 7th columns is time (HH:MM:SS) format. I need to compare these two vaules and if the date & time is higher...
5,613
Posted By ajiwww
i tried test1.sh and test3.sh and both are not...
i tried test1.sh and test3.sh and both are not working, its keep on looping and not creating any fileC and dumping lots of data to fileD. :wall:

Pls try on below files

CONDITIONS

values from...
5,613
Posted By ajiwww
files are not so large. date wise, yes you are...
files are not so large. date wise, yes you are correct. i need to split and then compare. But once i have a base script, then can modify that date part later. Any idea why the syntax error is coming ?
5,613
Posted By ajiwww
I was able to do it in another way cat fileA...
I was able to do it in another way

cat fileA | while read CLIENT DB POLICY SCHEDULE DATE TIME
do
if ( grep -w "$DB" fileB | grep -w "$CLIENT" | grep -w "$POLICY" | grep -w "$SCHEDULE" )
...
5,613
Posted By ajiwww
Shell script to compare two files
I have two files; file A and file B. I need all the entries of file A to be compared with file B line by line. If the entry exists on file B, then save those on file C; if no then save it on file D
...
3,828
Posted By ajiwww
thank you so much man, so kind if yo...:b:
thank you so much man, so kind if yo...:b:
3,828
Posted By ajiwww
thank you so much, working like a dream. Can...
thank you so much, working like a dream.
Can you pls explain how exactly its working
3,828
Posted By ajiwww
script to delete lines from a txt file if pattern matches
File
6 dbnawldb010-b office Memphis_Corp_SQL_Diff Memphis-Corp-SQL-Inc-Application-Backup 03/09/11 03:24:04
42 luigi-b IPNRemitDB Memphis_Corp_SQL_Diff Memphis-Corp-SQL-Inc-Application-Backup...
1,838
Posted By ajiwww
yea its working, thanks ---------- Post...
yea its working, thanks

---------- Post updated at 10:10 AM ---------- Previous update was at 10:06 AM ----------

another concern.
If i added some more lines on the same file

6...
1,838
Posted By ajiwww
no output # awk -F"[ :]"...
no output

# awk -F"[ :]" '$6~"03/08/11"&&$7>=6' file
#

Please use code tags (https://www.unix.com/misc.php?do=bbcode&#code) when posting data and code samples!
1,838
Posted By ajiwww
shell script to remove all lines which exceeds a particular date & time
I have a text file which got 6th coloumn as date and 7th coloumn as time. The text contains data for last one week. I need to remove all the data whose date & time is after 03/08/2011 06:00:00 and...
4,021
Posted By ajiwww
ok, thanks its working fine now
ok, thanks its working fine now
4,021
Posted By ajiwww
OK, that "special date" was just for testing.:p ...
OK, that "special date" was just for testing.:p

What the problem here is, its only sorting the value as per the first "-k". If we try to use multiple times with different sort values, its not...
4,021
Posted By ajiwww
i was able to find out the code # sort -k ...
i was able to find out the code
# sort -k 6.8,6.9 -k 6.5,6.6 -k 6.1,6.2 -k 7.8,7.9 -k 7.5,7.6 -k 7.1,7.2 test1

6 dbclstr-b Logs Memphis_Prod_SQL_Diff Memphis-Prod-SQL-Inc-Application-Backup...
4,021
Posted By ajiwww
# cat test 6 dbclstr-b Logs...
# cat test
6 dbclstr-b Logs Memphis_Prod_SQL_Diff Memphis-Prod-SQL-Inc-Application-Backup 09/30/11 11:80:82
6 dbclstr-b Logs Memphis_Prod_SQL_Diff Memphis-Prod-SQL-Inc-Application-Backup 05/22/11...
4,021
Posted By ajiwww
Thanks for the code, its working on the file. But...
Thanks for the code, its working on the file. But the another file with same format, its not working
# cat test1
6 dbclstr-b Logs Memphis_Prod_SQL_Diff Memphis-Prod-SQL-Inc-Application-Backup...
4,021
Posted By ajiwww
shell script to sort entries in a file by date and time
Hello All,

Need a shell script to sort entries in a file by date and time. Below are the entries in the file, i need to sort it first by the date and then time

Note :- Date is in MM/DD/YY...
Showing results 1 to 23 of 23

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