[LUGSB] David: I need some help on using xargs command

Dan Kegel dank at kegel.com
Wed Nov 17 00:07:09 EST 2010


On Tue, Nov 16, 2010 at 9:05 PM, Richard Yao <ryao at ic.sunysb.edu> wrote:
> If your python script can take the file name as an argument, you can
> do something along the lines of the following:
>
> for i in $(ls); do echo $i; done

Right, or more simply,
  for file in *.txt; do echo $file; done

'find' is more useful when you need to search subdirectories.
- Dan


More information about the lugsb mailing list