Monday, April 04, 2005

The New UNIX Shell Category

I use UNIX quite a lot but my retention rate of UNIX commands is less than desirable so I have created a new category called "UNIX Shell" on my blog to help me remember some of the *NIX (UNIX, Linux, etc) scripts and commands that I have found useful.

First tip on this category is the xargs command that used in UNIX shell to break a data stream into small enough for commands to process. Let's suppose you want to search for MP3 files that you have added to your music library folder in the past week and copy them to another foler, you can issue this command:

find . -name '*.mp3' -mtime -7 -print | xargs -i -t cp {} /tmp

4/4/2005 4:36:38 PM (Eastern Daylight Time, UTC-04:00) # Comments [22] Computers
Tracked by:
"cheap diet pills obesity" (cheap diet pills obesity) [Trackback]
"games free online video poker" (games free online video poker) [Trackback]
"party poker" (party poker) [Trackback]

<May 2008>
SunMonTueWedThuFriSat
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567

About Me

My Photo
Name:Samuel Chow
Location:Cambridge, Massachusetts, United States

Other Profiles

 Last.FM
 Flickr
 MyBlogLog
 Technorati
 

Login

Steal These Buttions

Website Related
IE Tested Firefox Test
CSS Validated CSS Validated
Email Me Extreme Tracking Web Statistics
Blog Related
Audioscrobbler Creative Commons Licensed
Listed on Blogshares  

Page rendered at 5/22/2008 5:21:00 PM (Eastern Daylight Time, UTC-04:00)

Contact Cybersam

Copyright 2000-2008 Cybersam.org All rights reserved

The content of this site are my own personal opinions and do not represent the views of MIT or Analog Devices in anyway. In addition, my thoughts and opinions often change, and as a weblog is intended to provide a semi-permanent point in time snapshot you should not consider out of date posts to reflect my current thoughts and opinions.