Is there a simple bash executable program (SIMPLE!!! in the repositories!) to iterate the file tree in a specified order (infix, prefix, postfix whatever) while executing a function on the files?
Specifically i want to make a large list of the names of files on the root of one or more dirs. I could do this on java easy (in fact i already have the function) but i want to do it in bash for some reason).
I’m not interested in code. I want to use a program that takes care of that for me.
You could use
…to find all files
-type fin the current directory., and show the contents of each onecat {} \;.Or you could use
treeif you want a tree-like output (this one is not installed by default though).