Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Applications / Mac Applications / May 2007



Tip: Looking for answers? Try searching our database.

"ls -l" for files with resource forks

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul Nevai - 12 May 2007 13:34 GMT
Is there a version of "ls" that also lists the size of a resource fork when
doing a "ls -l" job? /PaulN
Chris Ridd - 12 May 2007 15:23 GMT
> Is there a version of "ls" that also lists the size of a resource fork when
> doing a "ls -l" job? /PaulN

ls will do this itself. The trick is to append "/..namedfork/rsrc" to
each filename:

    ls -l somefile/..namedfork/rsrc

Use data instead of rsrc to get the data fork's size.

Cheers,

Chris
Paul Nevai - 12 May 2007 16:32 GMT
> > Is there a version of "ls" that also lists the size of a resource fork when
> > doing a "ls -l" job? /PaulN

> ls will do this itself. The trick is to append "/..namedfork/rsrc" to
> each filename:

>         ls -l somefile/..namedfork/rsrc

> Use data instead of rsrc to get the data fork's size.

Fantastic!!! I googled "namedfork" now and I see what's going on. A million
thanks, PaulN
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.