Find the answer to your Linux question:
Results 1 to 6 of 6
Hi, am new on this forum could any one please help me out with these. I tried sorting out data sets of packet field header for anomaly detection system using ...
  1. #1
    Just Joined!
    Join Date
    Sep 2009
    Posts
    5

    sorting data in chronological order debian using the root terminal

    Hi, am new on this forum could any one please help me out with these. I tried sorting out data sets of packet field header for anomaly detection system using the command
    ./phad0 700 in3* |sort +0.45 -r >phad1.sim

    but i got the error message

    sort: open failed: +0.45: no such file or directory

    and then decided to creat a directory for +0.45 and re-ran the command, i got another error message saying sort:read failed: +0.45 is a directory

    Actually the phad0 is the compiled souce code of phad written in C++, compiled on gcc g++ while the phad1.sim is the file extension for phad0 and in3* is the tcpdump files that i want to sort in chronological order from in31 t0 in37.

    thank u.

  2. #2
    Linux Newbie
    Join Date
    Jan 2008
    Location
    Canada
    Posts
    109
    Hi dode

    I think that the call to sort should read 'sort +0 -45' for it to work. Hope this helps. Cheers...
    Robert

  3. #3
    Just Joined!
    Join Date
    Sep 2009
    Posts
    5
    thank u Robert it worked.
    but i still have a little problem on it,
    the 700 specified in the command is the time in seconds that i want it to run for, but i discovered that it doesn't run for that time or any other time i specify for it, please do u have a clue on how i can go about it.

  4. #4
    Linux Newbie
    Join Date
    Jan 2008
    Location
    Canada
    Posts
    109
    Hi dode
    I am not sure about the phad0 function. Sorry. Cheers...
    Robert
    PS. the +0.45 used to be a valid function within sort but may be deprecated. It is supposed to mean skip 0 rows and 45 characters. Does not work on my system.

  5. #5
    Just Joined!
    Join Date
    Sep 2009
    Posts
    5
    thank u Robert.

  6. #6
    Just Joined!
    Join Date
    Sep 2009
    Posts
    5
    Hi,

    please thus anyone out there knows how i can go about it, am really stucked.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •