A simple question!# Unix - 噫吁兮,危乎高哉
h*s
1 楼
I have 10 directories under my home directory, named dir1-dir10. Under each
directory, there is one text file named dirX.txt, where X is the index of the
directory. e.g, dir1.txt is under dir1/ and dir6.txt is under dir6/. I have
another directory called alldata under my home directory too.
My question is how can I build a soft link for all those 10 text files
(dirX.txt) under alldata/ directory by some simple command instead of link
them one by one by hand. I am thinking of using find command b
directory, there is one text file named dirX.txt, where X is the index of the
directory. e.g, dir1.txt is under dir1/ and dir6.txt is under dir6/. I have
another directory called alldata under my home directory too.
My question is how can I build a soft link for all those 10 text files
(dirX.txt) under alldata/ directory by some simple command instead of link
them one by one by hand. I am thinking of using find command b