I need some help in script or awk to create a textfile.
I have a directory where two subdirectories exists say A and B.
Now I need to write a ".txt" file with well arranged(space wraped) three columns in it with the data as follows:
1st column:Serial number(which will increment with the row number)
2nd column:With the filenames of those files existing inside directory A (I do have subfolders inside A)
3rd column:With the filenames of those files existing inside directory B (here also same problem, I have subfolders inside B).
I tried outputing ls * and manipulating .. but was stuck in subfolders..