Bash . number of script arguments

commandline session

$. var 1 2 3 4
4
$. var 1 2 3 4 3 3 3
7
$cat var
Name=Jeffrin
Age=36

echo $#
$. var
0
$. var .
1
$. var $
1
$. var ?
5
$. var ?
5
$. var 1 2
2
$. var ?
5
$echo $?
0
$. var *
768
$. var )
bash: syntax error near unexpected token `)'
$. var &
[1] 5679
$0

[1]+  Done                    . var
$. var ^
1
$. var %
1
$. var @
1
$. var !
1
$. var ~
1
$. var -
1
$. var _
1
$. var +
1
$. var =
1
$. var |
> ;
bash: syntax error near unexpected token `;'
$. var 
> .
1
$

$. var ?
~/ 0/ 1  c  h
$. var ?
5
$. var *
Display all 768 possibilities? (y or n)
$. var *
768
$

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s