creating a txt file with absolute path to each directory
1
0
Entering edit mode
19 months ago
arshad1292 ▴ 100

I have 3200 files in a directory. I want to generate a single .txt file containing file name one column and absolute path to each file in another column (with tab delimited). For example,

sample1   /home/myself/samples/sample1.db
sample2   /home/myself/samples/sample2.db
sample3   /home/myself/samples/sample3.db

and so on until.... 3200nd file

Any idea please?

shell linux script • 513 views
ADD COMMENT
1
Entering edit mode
19 months ago
find /path/to/root -type f -name "*.db" > out.list
ADD COMMENT
0
Entering edit mode

Thank you!

ADD REPLY

Login before adding your answer.

Traffic: 1994 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6