LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-22-2005, 10:54 AM   #16
labelle7152
LQ Newbie
 
Registered: Dec 2005
Posts: 7

Original Poster
Rep: Reputation: 0

sirclif
Quote:
860610103 3113958944966740579012759994359105 14740192326 2194235 99712868 82 0 0 0 107675 1 570 12421111123A
860610103 4 83907765675740579011994593814105 10116725553 2044235 99782901 66 0 0 0 107639 1 710 12421111123A
860610103 5121162529333740579012651927211764 19127780178 2274235 99812906
I used this piece of data to help explain
the date starts as number 8 03 is the year 3 is the third day of Jauruary and 1139589944966 is the
seconds in hundreds of a seconds starting from 1201 am.
the Julian calander numbers the days in the year from 1-365 so Jan 1st is 1 Feb 1st is 29 ect
the day are right jusified by blanks so in these three lines you have 3 for Jan3rd 4 for Jan 4th
and 5 for Jan 5th dose that help
 
Old 12-22-2005, 11:37 AM   #17
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Try
Code:
sort -u -g -t @  -k1.8,1.9 -k1.10,1.12n -k1.13,1.130 -o ajisai_e10.0301 ajisai_e.0301
Hoping that I got that 130 right as the total length of your
input lines :}


Cheers,
Tink

P.S.: I still find it hard to believe that the original sort
in Unix would have made sense of those lines... it only would/
could if someone had modified the ASCII table on that particular
machine so that space comes directly before 0.
 
Old 12-23-2005, 09:27 AM   #18
labelle7152
LQ Newbie
 
Registered: Dec 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Tinkser
Thanks It worked. You are a life saver. The user disk had failed on the older Unix based computer
we were using (The system manager stop backing up the old system and did not save any old backup !!)
so I had to get this working on the Linux computer.

sirclif
thanks for all the help
 
Old 12-23-2005, 11:14 AM   #19
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
That'll be a 5 dollar donation to gnu.org or LQ please ;}



Cheers,
Tink
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to delete duplicates entries in xml file using sed/awk/sort ? catzilla Linux - Software 1 10-28-2005 02:57 PM
Sharing internet from Mac to Linux(PC) - Some sort of DNS problem? lloyd_smart Linux - Networking 8 05-18-2005 05:08 PM
How to loop or sort in bash, awk or sed? j4r0d Programming 1 09-09-2004 03:22 AM
Insert character into a line with sed? & variables in sed? jago25_98 Programming 5 03-11-2004 06:12 AM
How to sort this problem out. manixmania Linux - Newbie 2 07-15-2003 02:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration