cd Desktop/MacTracker ls -R > ~/Desktop/big-dang-list(What this means: From within the MacTracker directory, show a list all files and subfolder contents, recursively, and write the output of that list to a file called "big-dang-list".)
About Mactracker AirPort Stations Cameras Classic Macintosh Displays Image-StyleWriter LaserWriter Mac OS Mac Pro Mac mini MacBook-MacBook Pro Macintosh Clones Mice-Keyboards Newton Performa Power Mac G3-G4-G5 Power Macintosh PowerBook PowerBook G3-G4 Scanners Workgroup-Mac Servers Xserve-Xserve RAID eMac iBook iMac iPod ./AirPort Stations: AP BS (Dual Ethernet) AP BS (Graphite) APE BS (PoE-UL 2043) APE BS (with Modem) APE Base Station AirPort Express ./Cameras: QT VC Camera 100 QuickTake 100 QuickTake 150 QuickTake 200 iSight ./Classic Macintosh: Mac 128k Mac 512k-512ke Mac Centris 610 ...(continued)Get rid of the first, topmost list (it's just the directory names).
\r to </td><td>[ ]</td></tr>\r<tr><td>In other words, wherever there is a carriage return, turn it into the HTML for ending a table cell, creating another cell with a [ ] in it (this will be where I put the checkmarks for the machines I have), end THAT cell, end the row, retain the carriage return for readability, start a new row and a new cell.
<tr><td>./ to <tr><td colspan="2"><b>
And then:
:</td><td>[ ]</td></tr> to </b></td></tr>All the directory names start with ./ (Unix-ese for "in this directory") and end with a colon. They do double-duty here as category names, so we want to boldface them and make them stretch across both columns.
Last major find/change:
<tr><td></td><td>[ ]</td></tr> to <tr><td colspan="2"> </td></tr>Gets rid of the extra checkbox and turns it into a blank line (empty row) for spacing.
The only bummer here is that the initial list generated by ls -R is in alphabetical order, not in the nice chronological order of the MacTracker interface. Oh well.
Back to the big list