I am wanting a command to populate an array with its output, for example:
slocate newfile > An_Array
Which would then allow a second command to iterate through An_Array, such as:
Code:
for x in An_Array
do
rm -ir
done
This
should pass the output of slocate to a list which then when iterated through will allow the user to opt to remove a specified file. At least, that's the theory!!
Any thoughts?