Tags
Categories
- Computers (13)
- Electronics (4)
- Internet (3)
- Musings (1)
- Photography (2)
- Uncategorized (1)
- Vehicles (3)
Meta
Archives
- March 2020 (1)
- November 2011 (3)
- October 2011 (1)
- August 2010 (1)
- February 2010 (1)
- April 2009 (1)
- March 2009 (1)
- February 2009 (1)
- December 2008 (1)
- November 2008 (2)
- October 2008 (1)
- September 2008 (1)
- June 2008 (1)
- March 2008 (3)
- February 2008 (2)
-
Recent Posts
Tag Archives: bash
Play or open newest file from the linux command line
In some cases it is convenient to have a shortcut to open the newest file in a directory. Maybe the last show your dvr recorded, or the last file you bought from amazon.
For these cases I found this little bash snippet useful:
ls -tr | tail -n 1 | xargs -I FILE kde-open "FILE"