Repeatative piping

Dan Ritter dsr-mzpnVDyJpH4k7aNtvndDlA at public.gmane.org
Sun Feb 22 12:56:18 EST 2009


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.





More information about the Discuss mailing list