Hello all,
First time posting here. I hope i'm posting this in the right place. lol
I'm using Bash and i'm in trouble! I'm trying to write a script using Bash to loop through a specific directory and all the subdirectories in it, and then outputing every file in them onto the screen with, possibly the 'ls' command[?] Is there any possible way of accomplishing this?
It would look something like :
User: george/x7
scriptfile
stuff
morestuff
george/x7/junk:
morejunkfiles
also, how would i pipe this thru a 'less' command?
Any help would be greatly appreciated. Thanks!