Hello,
I want to know is it possible to pass a block of sentence using bash.
For example,
I have a script called Test.sh that takes in $1 and $2.
and I'm calling Test.sh in a.sh
so
in a.sh
Test.sh '' 'This is a sentence'
Because block are separated by space so when I do that, I get $1=This and $2=is in Test.sh.
How can I pass a empty string and a sentence use block?
[rvegmond@wednesday ~]$ cat test.sh
#!/bin/bash
echo "1=$1"
echo "2=$2"
[rvegmond@wednesday ~]$ ./test.sh '' 'This is a second argument'
1=
2=This is a second argument