[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] loading a file into a variable using cat
From: |
Greg Wooledge |
Subject: |
Re: [Help-bash] loading a file into a variable using cat |
Date: |
Fri, 22 Sep 2017 10:37:35 -0400 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On Fri, Sep 22, 2017 at 07:31:03PM +0530, Lakshman Siddardha wrote:
> when i execute a shell script, it gives output in one line only
> ---------------------------------------
> ex.sh
> ----------------------------------------
> lista=$(cat list)
> echo $lista
http://mywiki.wooledge.org/BashPitfalls#pf14
http://mywiki.wooledge.org/Quotes