Re: reading lines from standard input or a two way pipe into an array
- From: pgas <pierre.gaston@xxxxxxxxx>
- Date: Mon, 26 Nov 2007 13:12:24 +0000 (UTC)
hyperboogie <hyperboogie@xxxxxxxxx> wrote:
I'm trying to read the output of 'ls -lartF' into an array, a line
into each array element
O=$IFS IFS=$'\n';array=( $(IFS=$O;ls -lartF) );IFS=$O;printf "%s\n" "${array[@]}"
--
pgas @ SDF Public Access UNIX System - http://sdf.lonestar.org
.
- References:
- reading lines from standard input or a two way pipe into an array
- From: hyperboogie
- reading lines from standard input or a two way pipe into an array
- Prev by Date: Re: Copying a bunch of images to one directory.
- Next by Date: Re: Top 10 posters comp.unix.shell
- Previous by thread: Re: reading lines from standard input or a two way pipe into an array
- Index(es):