On Sat, Apr 09, 2016 at 06:12:20PM -0500, Peng Yu wrote:
> Does anybody know
> what is the correct way to use !! in a script? Thanks.
You don't. Why would you ever use that in a script?
If for some reason you want to run the same command two times in a row,
you can simply copy and paste the command. If you want to run it a
whole bunch of times in a row, wrap it in a for or while loop.
for i in {1..10}; do
some really long command that you want to run 10 times in a row
done