It appeared. Then disappeared. Appeared again. Disappeared again. →Link
→Link
 ”The update patches several vulnerabilities including a much-publicized DNS/BIND server vulnerability where an attacker could cause a Mac OS X DNS server to direct clients to forged websites.” →Link
They missed Mini Cooper. And the beloved Peel P50. [Via: DesignObserver] →Link
“Use autocomplete=”off” in either < form >(for all boxes) or each specific input box.” →Link
So Ars tried to prove that Apple won’t move away from Intel chipset. →Link
A much better improvement. →Link
I like this idea of having a little ATM at your home. →Link
Kind of useful. →Link
Apple should make the native interface just like the remote app’s. Here’s why. [via →Link
It’s interesting if Apple manufactures its own chipset instead using Intel’s, which will make Apple “Different” again. Also, it can potentially eliminates the possibility of Hackintoshes(Psystar). →Link
“..it uses the accelerometer in your iThingy to measure 0-60mph times, lateral Gs and even horsepower.” →Link to introduction | →Link to App Store
I need the Blu-ray option for Macs. Badly. →Link
This is not looking optimistic for Apple if it’s real. →Link
Be sure to read this Lightroom 2 vs My Lightrrom 2 wishlist. →Link
A great lecture. “He did, however, mention that he experienced a near-deathbed conversion: he switched and bought a Macintosh computer.” →Link | →Link to YouTube Video
Hilarious stuff. [Via RealDanLyons] →Link
“If Apple lies in a press release, or if its CEO lies in an on-the-record statement, the company has problems. But if everything was off the record, who’s to know? ” →Link
Absolutely, breathtakingly beautiful. →Link

When it comes to UNIX shell-scripting I need all the help I can get.  It’s hard trying to do something new because getting to the right info requires reading many manual pages.  Here are commands I learned to find the latest version of a file that has a timestamp in its filename.  Suppose the files are

myFile.2008-05-01.12.45.01

myFile.2008-05-01.12.46.02

myFile.2008-05-01.12.47.03

and they’re in a directory with many other files, and you want to find the myFile with latest time, then issue this command in the directory of myFile:

ls -l | awk '/myFile/ {print $NF}' | tail -n 1
 

Ok, so what does this do?

“ls -l” prints the files in the current directory, one file per line, in ascending sorted order.  This output is passed to awk, which evaluates each line, searching for the pattern myFile, and for each line with myFile, it separates the words by whitespace, and prints the last field, which is the filename.  The list of such filenames is then passed to tail -n 1, which simply prints the last file in the list.  The result should be what we want.  Of course, if there are other files such as myFileABC, then this command won’t work.  We’ll need a more specific regular expression pattern in the awk command.

Can anyone do it simpler?  Please share.  Thanks.

newer posts older posts