5.8. How do I reload/re-edit the current file? You can use the ":edit" command, without specifying a file name, to reload the current file. If you have made modifications to the file, you can use ":edit!" to force the reload of the current file (you will lose your modifications). For more information, read :help :edit :help :edit! :help 'confirm' from - http://vimdoc.sourceforge.net/cgi-bin/vimfaq2html3.pl#5.8
Comments
$ touch 'foo bar'
$ ./test foo*
foo
bar
$
If you're that incompetent and can't even bother to test your own advice then why do you bother giving advice at all? Just to piss people off?
Don't know what you are smoking bro.
$ cat test1.sh
for i in $*
do
echo $i
done
$ ./test1.sh 'foo bar'
foo
bar
$
See? The script shows it as 2 parameters, "foo" and "bar", although there is only one, "foo bar".
OTOH, here is a version that DOES work:
$ cat test2.sh
while [ $# -ne 0 ]; do
echo "$1"
shift
done
$ ./test2.sh 'foo bar'
foo bar
$
$ ./test a\ b c
Will be parsed as three arguments by that for loop, when in reality it is two arguments (with an escaped space in the first argument.)
The while loop is the way to go.
for i in "$@"
do
echo "$i"
done
Maybe boolean above it to switch to eating the first arg.
for i in $*
do
if(DO)
then
echo $i
fi
D0=1
done
I'm not a bash-scripter by the way.
shift n
to shift the positional parameters to the left
for a
do
echo $a
done
This will loop all arguments except $0
for (( i=1; i<=$#; i++ )); do
eval arg=\$$i
echo "Hello $arg"
done