for afile in /home/auser/adirectory/*; do echo $afile; done
Useful for all kinds of things. And I can never remember how the syntax changes between doing a for statement in a bash script and doing it as a one-liner on the command line.
Poetry, Essays, Stories, and More:
Contact
Categories
- Autobiography
- Books
- Broken
- Computers
- CSS
- Dakim
- Denmark
- Essential Reading
- fatblogging
- Gadgets
- Hiking
- Humor
- John Mark Schofield Meta
- Lifehacks
- Linux
- Macintosh
- Macintosh Productivity
- Management
- Photos
- Poetry
- Politics & Freedom
- Programming
- Python
- Rants
- Santa Monica Mountains
- security
- Shell Scripting
- SPBS
- Subversion
- Sudosu.net Meta
- Technical Support
- Therapy
- Topanga
- Travel
- Ubuntu
- Uncategorized
- Web
- Web Hosting
- wildlife
- WordPress
Archives
- December 2009
- April 2009
- March 2009
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- October 2006
- July 2006
- June 2006
- May 2006
- October 2005