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

Re: BASH



On 01/05/15 22:44, Daniel Bareiro wrote:
> while [ "$1" != "" ]; do

Another useful way to do this: $# is the number of arguments on the
command line.  You can do [ $# -gt 0 ] to test when the arguments have
been consumed.
-- 
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
  ...it's backed up on a tape somewhere.


Reply to: