I'm looking for some suggestions on a command line utility I am making. I would like to use 'find' to locate some files and index the results so the user can choose the correct results from the list and push that input into an open command. A simple example below:
/Users/admin/Desktop/misc/Untitled 4.txt
/Users/admin/Desktop/misc/Untitled.txt
/Users/admin/Desktop/output 2.txt
/Users/admin/Desktop/output.txt
/Users/admin/Desktop/testr.txt
My intention is to build an interface that shows the index on each line and the end user can choose the index number, like so:
[0]/Users/admin/Desktop/misc/Untitled 4.txt
[1]/Users/admin/Desktop/misc/Untitled.txt
[2]/Users/admin/Desktop/output 2.txt
[3]/Users/admin/Desktop/output.txt
[4]/Users/admin/Desktop/testr.txt
Any thoughts?
Thanks!
OSX10.9