Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Repeatative piping



On Sun, Feb 22, 2009 at 12:11:27PM -0500, Doug wrote:
> Hello:
> 
> There are lots of ways to do this.  One easy approach for me is write
> q_square_n, that given an n, does the loop.  I was curious if there
> was command line way to accomplish the same thing.  I don't know if I
> have used a for loop in a command line setting before.

for i in LIST; do something $i ; done

man sh for what LIST can be.

There's also while.

-dsr-


-- 
http://tao.merseine.nu/~dsr/eula.html is hereby incorporated by reference.

You can't defend freedom by getting rid of it.






BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org