Search Results

Search: Posts Made By: wbrunc
1,258
Posted By wbrunc
Problem with if-else syntax
I'm calling the following if-else from nawk. But I keep getting an error at the "else". I've tried putting more brackets and ; but still I get complaints about the "else".
Any ideas ?
Thanks,...
3,379
Posted By wbrunc
Thanks, it's closer but now just off by one ...
Thanks, it's closer but now just off by one line.

sort -t , -k4.7,1.10 -k4.1,1.2 -k4.4,1.5 data
,,,02/06/2012,Carry H,Add,Add,Sys_RTH,111.222.333.777
,,,12/06/2012,Harry...
3,379
Posted By wbrunc
Sort on mm/dd/yyyy csv
I have the following csv data that I would like to sort on the 4th field by date
from oldest to newest.

data:
,,,02/06/2012,Carry H,Add,Add,Sys_RTH,111.222.333.777
4/7/12,,,03/03/2013,Parry...
6,139
Posted By wbrunc
Worked like a charm, thank you both !:)
Worked like a charm, thank you both !:)
6,139
Posted By wbrunc
The first three fields will not have any slashes,...
The first three fields will not have any slashes, so Yoda's solution works to a point.
Thanks.
But additional month and year are inserted where they shouldn't be.

data:
,,,12/6/2012,Harry...
6,139
Posted By wbrunc
awk convert date format
Could you tell me how to convert the following dates?

If I have m/d/yyyy, I want to have
0m/0d/yyyy. I want my dates to always be 8 digits.

In other words, I want a 0 inserted whenever the...
4,103
Posted By wbrunc
To clarify. Many_System is the base file that I'm...
To clarify. Many_System is the base file that I'm editing. The original lines in it should remain unless they need to be edited because of a match from a Good_System line. Therefore, the SysC line...
4,103
Posted By wbrunc
awk csv using a loop
I have a two files. One is a list called Good_System and the other is a csv called Many_System. I want to do a for loop to go through each
Good_System line and where the two fields match the...
Showing results 1 to 8 of 8

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