• 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
Dumb Q
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dumb Q


  • Subject: Dumb Q
  • From: William Squires <email@hidden>
  • Date: Wed, 6 Aug 2008 08:57:05 -0500

What's the proper way to make a C/ObjC program (Foundation tool) be used with the pipe operator? I want to make a simple filter that takes the output of "ls -la" and reformats it to appear more like the MS-DOS directory listing. So, I would do something like "ls -la | mydosfilter" and get a directory listing with the filename first, the # bytes second, then the timestamp (leaving out everything from the UNIX permissions bits to the group, and rearranging the rest.)
Also, what's the proper place to put the resulting executable so all users can use it in Terminal.App without having to do "ls -la | <path to mydosfilter>" every time. Can I put this in the deployment target once the linker is done? Do I need "sudo" to copy there? I know just enough tcsh stuff to be dangerous... :)
Finally, what's the number just after the UNIX permissions bits? the PID?


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Dumb Q
      • From: Marco Masser <email@hidden>
    • Re: Dumb Q
      • From: Negm-Awad Amin <email@hidden>
    • Re: Dumb Q
      • From: Thomas Davie <email@hidden>
  • Prev by Date: Re: How to debug a corrupted stack
  • Next by Date: remove elements during the iteration on NSMutableDictionary
  • Previous by thread: Re: typedef, bindings, and Objective-C
  • Next by thread: Re: Dumb Q
  • Index(es):
    • Date
    • Thread