hey guys,
i have a directory tree structure with files that looks like this
Code:
/home/sub1/
/home/sub1/dog.csv
/home/sub1/colors.csv
/home/sub1/sub2/
/home/sub1/sub2/sub3/
/home/sub1/sub2/sub3/cars.csv
inside each of the csv files there is a header field separated by csv
for example: dog.csv would have as its header fields
and for colors.csv would have as its header fields
and for car.csv would have as its header fields
when i use
Code:
find * -exec cat {}/;
or
Code:
find * print0 | xargs -0 cat
i get a listing, but it's a mess and not easily readable!
I would like the output something more human readable, maybe something like this, but I'm open to other human readable results.
Code:
/sub1/dog.csv
dog1, dog2, dog3
/sub1/colors.csv
red, white, blue
/sub2/
/sub3/cars.csv
Ford, Chevy, Dodge
note: my system does not have tree as a command.
I'm guessing that it will take some sort of an awk script
thanks for whatever help you might give!
Todd