I need a bash script to print folder names and file names recursively (in stdo/p). For example: i have a folders structure like /earth/plants/flowers/rose/rose.jpg.
awk -F"/" '{ print "\n planet=", $2, "\n category=", $3, "\n sub cat=", $4 for (i = 5; i < NF; i++) print " add cat=", $i print " Name=",$NF }'