04-09-2003, 06:03 PM #1gatorparrotsGuest
Sveinbjorn Thordarson has released a new, free, open source, "Mac compatible" version of ls called lsmac. Here's what he had to say about it:
I've made a command line unix program similar to ls but with a Mac twist. It's called lsmac (48K download), and it sports the following features:
* Lists the files within a directory
* Can display file size in human-readable format (i.e. 1.2MB instead of 12759024 bytes)
* Displays the size of all the file's forks, including the heritage resource fork, not just the data fork like ls!
* Displays file and creator types
* Displays the Finder flags that are set
Apple supplies command line utilities with the Developer Tools that share some of this functionality, but they operate on a file-by-file basis. lsmac is free, open-source GPL'd software.
Here is an output sample:
% lsmac -C---- 8BPS 8BIM 201 KB 2002NewYear.psd ------ JPEG 8BIM 21 KB 2003newyear.jpg ------ TIFF ogle 7 KB 999 mark.tiff ------ JPEG 8BIM 211 KB bday_big.jpg -C---- 8BPS 8BIM 1.7 MB birthday2.psd -C---- JPEG GKON 119 KB calendar.jpg ------ 47 KB calendar.tiff ------ 4 items - Classic Scripts/ ------ ???? ???? 3 KB config.php ------ 2 items - docs/ ------ ???? ???? 18 KB english.php ------ TEXT R*ch 1 KB example of posting code ------ 11 KB FAQ text.txt ------ XLS8 XCEL 12 KB forum activity.xls ------ XLS8 XCEL 19 KB forum stats.xls
# -s Display file size in human-readable format (i.e. 1.2MB or 327KB)
# -b Display file size in bytes (i.e. 12977128 bytes)
# -o Omit folders when listing directory contents
# -a Display all files, including files with the . prefix.
# -p Display full file paths instead of file names
# -l When listing file size, use physical size instead of logical size.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By Daniel7 in forum OS X - Operating SystemReplies: 1Last Post: 11-30-2012, 09:24 AM
By helskanki in forum Other Hardware and PeripheralsReplies: 1Last Post: 02-05-2011, 10:47 AM
By PaddyMac in forum OS X - Operating SystemReplies: 3Last Post: 02-10-2008, 02:41 PM
By farmcock in forum Other Hardware and PeripheralsReplies: 1Last Post: 03-26-2007, 10:32 PM
By GilbertGunn in forum Other Hardware and PeripheralsReplies: 0Last Post: 09-12-2006, 11:02 AM