What I am wanting to do, is do a while loop sort of thing, for a file, but read more than one line at a time, and tell it to read only between two points at a time.
So file1 contains:
I have other files that I am going to read like this, as variable
the contents of these are <dict>contents of the thing</dict> that match <dict> </dict> of their respective parts in the file.
so I want to use this code (well, something that works, as this does not ):
to echo the name into a separate file.
while read variable; do
if [[ "$variable" == "$rawr" ]];
then echo "rawr" >> "list";
elif [[ "$variable" == "$hello" ]];
then echo "hello" >> "$list";
or possibly some way to check the lines against each other one at a time? but I would need the end result of the <dict> </dict> still :/