bug-bash
[Top][All Lists]
Advanced

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

mapfile usage


From: Alex Reed
Subject: mapfile usage
Date: Wed, 4 Feb 2009 10:50:07 -0800 (PST)
User-agent: G2/1.0

Can someone please explain how 'mapfile' should be used?  I am trying:

cat file.txt | mapfile
for i in ${MAPFILE};do echo $i; done

and I see no output.  I've tried adding the -t option to strip
trailing newlines.  If I use the following command:

mapfile -u file.txt

I get the error:

bash: mapfile: file.txt: invalid file descriptor specification
Exit 1


This is sad...  Any suggestions?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]