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:
for x in An_Array
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!!