user2711819
user2711819

Reputation: 960

how to pass each shell parameter in new line

I had a shell script that takes 3 parameters

test.sh a b c

I want to give each parameter in a new line

some thing like this :

test.sh a
        b
        c

i am on AIX Thanks.

Upvotes: 8

Views: 5473

Answers (1)

janisz
janisz

Reputation: 6371

Just put \ at the end of line, it "escapes" the meaning of the character following it, which in this case is a newline.

test.sh a \
        b \
        c

Upvotes: 12

Related Questions