由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - A simple question!
相关主题
FTP Help文件的LINK到底有什么用处?
Is there any software can D/L a whole directory?how to enter a directory like "..a pub" ? Thanks
[转载] 问一个问题为什么Netscape启动以后就自动关闭?
gcc in mac OSXwhat is the "core" in directory.
Apache中如何加入用户和口令?what's wrong with my CXterm5.0?
Help!how to write robort in perl w/out expect?
请问显示可用打印机的命令what command is for changing the directory name?
a question about using ftp dl music fileI am crazy about this!!
相关话题的讨论汇总
话题: directory话题: under话题: simple话题: alldata话题: question
进入Unix版参与讨论
1 (共1页)
h*********s
发帖数: 14
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
c**t
发帖数: 26
2
use perl or cshell, it's simple

【在 h*********s 的大作中提到】
: 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

q*z
发帖数: 13362
3

the
in alldata dir
find .. -name 'dir*.txt'-printf 'ln -s %p `basename %p`'|sh

【在 h*********s 的大作中提到】
: 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

1 (共1页)
进入Unix版参与讨论
相关主题
I am crazy about this!!Apache中如何加入用户和口令?
How to find the pdf file?Help!
Ask for your help!请问显示可用打印机的命令
please Help! This is emergency!a question about using ftp dl music file
FTP Help文件的LINK到底有什么用处?
Is there any software can D/L a whole directory?how to enter a directory like "..a pub" ? Thanks
[转载] 问一个问题为什么Netscape启动以后就自动关闭?
gcc in mac OSXwhat is the "core" in directory.
相关话题的讨论汇总
话题: directory话题: under话题: simple话题: alldata话题: question