Search Results

Search: Posts Made By: oldman2
7,134
Posted By oldman2
I thought about that but I do not have control on...
I thought about that but I do not have control on the date format in the file and its several thousand lines long. Do you have any suggestions on how to convert the date? Some of the other columns...
7,134
Posted By oldman2
Compare a date (mm/dd/yyyy) with awk
Please use code tags to format data sets See the </> selection above your edit box
I have a bash script to extract data based on information in one column and I would like to add a date comparison...
1,118
Posted By oldman2
bakunin, that works great! I never knew you could...
bakunin, that works great! I never knew you could do that with grep. Any ideas how I could pull out infomation with both 223 or 224 or maybe another number? maybe like an egrep...
1,118
Posted By oldman2
ksh to find specific infomation in a delimited file
I am using ksh and looking for a simple way to print the entire row when a specific column contains specific infomation. I know I can use grep to find the information however I can not specify the...
1,835
Posted By oldman2
Thanks for the reply. I tried but it seems AIX...
Thanks for the reply. I tried but it seems AIX does not have a month option for sort. Do you have any idea for the month?


$ sort -k4.8,4.11 -k4.4,4.6M -k4.1,4.2 -k4.13,4.14 -k4.16,4.17...
1,716
Posted By oldman2
If the date of the file matchs the file name you...
If the date of the file matchs the file name you should be able to use "ls -r".
1,835
Posted By oldman2
sort with different delimiters
I have a file with the following lines in it:
Inbound1:remote - - 01/Nov/2011:08:29:51 -0500 "GET / HTTP/1.1" 404 2098 HTTP
Inbound1:remote - - 02/Dec/2011:08:31:42 -0500 "GET / HTTP/1.1" 404 2098...
2,550
Posted By oldman2
Not sure but I can try. Do you have something in...
Not sure but I can try. Do you have something in mind that I can try. I have never used perl.

I do think I did something a few years ago using the Julian date. I am goint to see if I can...
2,550
Posted By oldman2
I was hoping for something a little cleaner. ...
I was hoping for something a little cleaner. This is an on demand script I am writing that will parse logs and display just the latest status. Any other ideas? :wall:
2,550
Posted By oldman2
Determine previous time in minutes
I have several logs with where the time stamp in the logs are "YYYYMMDDHHMM".

I would like to check the last line in each file to make sure the entry is less than 5 minutes old.
My timezone is...
8,521
Posted By oldman2
If it is garbled I dont care it works great! ...
If it is garbled I dont care it works great! Thanks

$ echo 20110624000744000693000704000764 | sed "s/.\{8\}/&,/;s/[^\,]\{6\}/&,/g;s/,//"
20110624,000744,000693,000704,000764,
8,521
Posted By oldman2
insert delimiter
I have a data file that I would like to add delimiters to.
Example:

Turn This:
20110624000744000693000704000764

Into This:
20110624,000744,000693,000704,000764

I found this link but...
1,483
Posted By oldman2
Sounds about right however I really dont know...
Sounds about right however I really dont know awk, any suggestions or examples?
1,483
Posted By oldman2
change output format using ksh
I have a script that reaches out to several systems and pulls back infomation in serveral files. I would like to take the infomation returned and reformat it so I can export it to excel.

Below...
10,250
Posted By oldman2
I did find this however I am working on AIX and...
I did find this however I am working on AIX and it does not have wget. Do you know if there is anything like this for AIX?
10,250
Posted By oldman2
ksh to check url
I have a server that keeps going down (503 Service not available). Until we find out the problem I would like to setup a simple ksh script in cron that will query url and report the status code. ...
6,088
Posted By oldman2
Jim works great on the local system but how can I...
Jim works great on the local system but how can I get it to run on a remote system using ssh?

The following does not work
ssh remote_server perl -e '$t = time - (stat("$ARGV[0]"))[9];...
5,095
Posted By oldman2
Thanks I figured it out. What I really needed was...
Thanks I figured it out. What I really needed was just to determine if a license was about to expire. So I did the following:

FUTURE_DATE=`TZ=GMT-60 date +%y%m%d%H%M%S`
if [[ ${VALID_TO_DATE}...
6,484
Posted By oldman2
reformat date from istat
I would like to determine if a file is older than a particular date. I found that istat will let me see the date and time of a file older than a year, but I need to change the format. Could anyone...
5,095
Posted By oldman2
days are between the two dates?
I have two times in the format of YYMMDD. Does anyone know an easy way in ksh for me to display how many days are between the two dates?

Example1:
X=101202
Y=101205
There are 3 days between X &...
6,088
Posted By oldman2
Determine file age in days?
I am using AIX 6.1 and would like to use a one line command to determine the age of a file in days. I would like to look at a specific file.
I would like to use the command to run on a remote...
Showing results 1 to 21 of 21

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