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

Re: Shell script question



Mario 'BitKoenig' Holbe wrote:
Andras Lorincz <andras.lorincz@gmail.com> wrote:

ENTRY=3D$(cat input_file)
for I in $ENTRY


while read i; do
	echo "$i"
done < input_file


regards
   Mario

And if the spaces give you trouble, add

---------
IFS='
'
---------

That's just a "newline" between the single quotes. This changes the "input field separator" to a new line and not a space. (The default is space, tab, newline, I think.) You can change it back later if you need.

HTH,

Luis



Reply to: