2
rated 0 times
[
2]
[
0]
/ answers: 1 / hits: 5483
/ 1 Year ago, fri, october 21, 2022, 7:43:53
I have a set of data files (*.all
) located in different folders
Documents/rawdata/Geob1005/1.all, 2.all, 3.all,...,n.all
Documents/rawdata/Geob1006/A.all, B.all, C.all,...,Z.all and so on...
I have created a file called datalist.mb-1
in each directory which lists all the *.all
files located in the same directory using:
/bin/ls -1 *.all | awk '{print $1" 58"}' >datalist.mb-1
so I get this:
Documents/rawdata/Geob1005/datalist.mb-1
Documents/rawdata/Geob1006/datalist.mb-1
and so on...
Now I need to create a "master" datalist in Documents/rawdata/
that points out to all the other datalists inside the directories of rawdata/
I need the outcome of the "master" datalist to look like this:
Geob1005/datalist.mb-1 -1
Geob1006/datalist.mb-1 -1
Any idea of how to do this task?
Thanks in advance.
More From » files