[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-bash] The best way to remove the last element of $@
From: |
Peng Yu |
Subject: |
[Help-bash] The best way to remove the last element of $@ |
Date: |
Thu, 7 Jun 2012 11:50:47 -0500 |
Hi,
It is easy to remove the last element of a regular array. But the
following pattern can not be applied to address@hidden Does anybody know what is
the best way to unset the last element?
array=(a b c)
printf "%s\n" address@hidden
unset address@hidden
printf "%s\n" address@hidden
--
Regards,
Peng
- [Help-bash] The best way to remove the last element of $@,
Peng Yu <=