Re: keeping the two latest files on a folder



Quoth Boyd Stephen Smith Jr. at 14/10/09 23:12...
Your font has betrayed you. The single-column-mode option is "-1" (dash-one), your messages says you tried the option "-l" (dash-ell) which requested a
detailed (long) listing.

Aha! Sure looked like a lower-case L. Think I need to bump up the font size for this little screen! Thank you for pointing that out.

Unfortunately, I still can't get the desired effect.

The ls -1 (#1) gives me my single-column list but piping it to sed '1,2d' still gives me the entire directory listing, each item separated by a single space. Can't see any reason from the sed manpage why this should be and can't locate my awk & sed book (may have left it at last job.)

If I'm the only person who can't get it to work, I'll leave it at that. Just trying it out of curiosity - if I really wanted to do this, I'd do it in Perl anyway. (Because I'm a Perl developer.)

Cheers

M

--
Matthew Smith
Smiffytech - Technology Consulting & Web Application Development
Business: http://www.smiffytech.com/
Blog/personal: http://www.smiffysplace.com/
LinkedIn: http://www.linkedin.com/in/smiffy
Skype: msmiffy
Twitter: @smiffy


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Logitech MX Revolution Mouse Problems, wheel button
    ... insists on listing things in a format where it is close to ... To unsubscribe or change subscription options: ... Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines ...
    (Fedora)
  • Samba ls date weirdness
    ... Essentially, my Debian box mounts Windows shares, does ... That listing is diff'd ... I do need the time/date info, so having it removed isn't a solution in ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Sorting by date
    ... On 02/28/2011 03:55 PM, Boyd Stephen Smith Jr. ... That's 4-digit year, dash, 2-digit month, dash, 2-digit day. ... GNU ls can probably look like that with a command-line full of options, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • RE: Listing number of files
    ... Subject: Listing number of files ... http://www.webpageworkshop.co.uk - FREE Web tutorials and references ... To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list ...
    (Fedora)
  • Re: How to recover from corrupted memory
    ... On 2010-03-17 04:33, Andrei Popescu wrote: ... "ls -aFl" listing of the directory). ... throw it onto a website and give us the link. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)