• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
(resend)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(resend)


  • Subject: (resend)
  • From: Alex Zavatone <email@hidden>
  • Date: Fri, 26 Mar 2010 16:33:31 -0500

Oops.  Sent using the wrong address last time.

Ok.  I have this Unix command :

ls -tl '/Optimized PNG/' | grep '^d' 

that returns only the directories in a folder, but does it with a bunch of other info I do not need.  Like so:

drwxr-xr-x  109 zav     3706 Oct  2 13:28 hd standard guide light optimized
drwxr-xr-x  109 zav     3706 Oct  2 13:28 hd standard guide light source
drwxr-xr-x   16 zav      544 Oct  2 13:24 s sd store terms conditions s2 optimized
drwxr-xr-x   16 zav      544 Oct  2 13:22 s sd store terms conditions s2 optimized source
drwxr-xr-x   16 zav      544 Oct  2 13:22 s sd store terms conditions s2 optimized2
drwxr-xr-x   10 zav      340 Oct  1 13:48 sd_CC_scr05
drwxr-xr-x  111 zav     3774 Sep 30 15:34 hd standard guide light
drwxr-xr-x  111 zav     3774 Sep 30 15:34 hd standard guide light copy
drwxr-xr-x   47 zav     1598 Sep 25 16:42 menu_mockup.revHEAD
drwxr-xr-x   18 zav      612 Sep 15  2009 startup res select-1
drwxr-xr-x    7 zav      238 Sep 15  2009 Adjusted Comm icon
drwxr-xr-x   49 zav     1666 Sep 10  2009 sd_my_communications_menu_with_ok_mag_334x68
drwxr-xr-x    5 zav      170 Sep  9  2009 Sample
drwxr-xr-x   35 zav     1190 Sep  9  2009 s sd purchased titles AZ


One problem is that sometimes, the date is returned as "Sep  9  2009"  And other times, it is returned as "Sep 25 16:42".  does anyone know if there is a Unix option to limit the number of output columns for ls -tl or ls -to??

BTW, the previously suggested ls -1td and la -1tdr do not return any useful info in the terminal besides a period.

Also, AppleScript seems to increase the word count in a string for every space character it runs into and also uses a colon as a word separator no matter what.  Fun.

Thanks, 
- Alex
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: (resend) - $ dir=/Some/Path/To/Server ; y=`date +%Y`; ls -lR $dir | sed -e "s/[0-9]*:[0-9]*/ `echo ${y}`/g"
      • From: Bill Hernandez <email@hidden>
    • Re: (resend)
      • From: "Stockly, Ed" <email@hidden>
    • Re: (resend)
      • From: Skeeve <email@hidden>
  • Prev by Date: Re: Rep: old script fails AND BUG in Smile 3.5.2 (build 609)
  • Next by Date: Filemaker Find Question - Help please...
  • Previous by thread: Re: Rep: old script fails AND BUG in Smile 3.5.2 (build 609)
  • Next by thread: Re: (resend)
  • Index(es):
    • Date
    • Thread