[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: newline in command-line argument?



Kendall Shaw <queshaw@pacbell.net> writes:

> Can I include a newline in an argument on the command line?
>
> For example, this doesn't work:
>
> A='asdf
> fdsa'

Yes, it does (in bash, at least).  But you may not be using it right.

[18:00:02] wesley:~ $ A='asdf
fdsa'
[18:00:39] wesley:~ $ echo "$A"
asdf
fdsa


-- 
Alan Shutko <ats@acm.org> - In a variety of flavors!
Loo slips sink ships ...



Reply to: