由买买提看人间百态

topics

全部话题 - 话题: dir4
(共0页)
d********e
发帖数: 132
1
来自主题: JobHunting版 - 一道题
在网上看到这个题:
given a path like: dir1/dir2/../dir3/./dir4, where ‘..’ means parent
directory and ‘.’ Means current directory, condense the given path. For
example, for the given string, the result should be: dir1/dir3/dir4
这道题是编程题还是用UNIX 命令?
x********e
发帖数: 35261
2
摘抄几段《“六四”坦克碾人真象》吧
http://www.mitbbs.com/bbsann2/news.faq/Salon/64/dir4/21/%E2%80%9C%E5%85%AD%E5%9B%9B%E2%80%9D%E5%9D%A6%E5%85%8B%E7%A2%BE%E4%BA%BA%E7%9C%9F%E8%B1%A1
“当我们到达车公庄的时候,那里已有一串被群众自发拦住的军车,卡车上挤满了 军
人,他们都没有武器,只有少数几个车上的军人头上戴了钢盔。群众一见到我们举 着
大旗到来,马上跑过来拦住我们,请我们帮助指挥,拦住这些军车。于是,我们十 几
个人分成好几个小组,每组分别指挥群众包围着一个军车,向他们讲道理作宣传。 同
时,我们也负责劝阻老百姓,不让人伤害军人和军车。整个车公庄大街的军人和群 众
都在有序地僵持着,军人站在车上,群众和学生在车下宣传。”
***这时候还是很理性的
A*********c
发帖数: 77
3
In a UNIX system I have a directory tree like
dir0/folder1/folder2/file1
dir1/folder1/folder2/file1
dir2/folder1/folder2/file1
dir3/folder1/folder2/file1
dir4/folder1/folder2/file1
...
Now I have got a newer version of file1 in dir0/folder1/folder2 and want to
ust it to replace every file1 above. Is there any command and/or program so
that I can finish my task using just one line (in reality I have more than 20
such directories)?
Thanks in advance!
(共0页)