g****n 发帖数: 3313 | 1 this is my code, but dosent work, ai........
#!/bin.sh
echo -n "Please enter dirA: " && read dirA
echo -n "Please enter dirB: " && read dirB
cd /dirA
for i in `ls`
do
if [ if ../dirB/$i]
then
#do nothing because I want to know the non-existing files
present=1
else
echo "dirA/"$i file is missing
ls -l $i >> /tmp/size_of_the_impacted_files
fi
cd /dirB
for i in `ls`
do
if [ if ../dirA/$i]
then
#do nothing because I want to know the non-existing files
present=1
else
echo "dirB/"$i file is missing
ls |
|
f*********e 发帖数: 8453 | 2 for f1 in $(ls dirA); do if [ ! -f dirB/$f1 ];then cp dirA/$f1 dirC;fi; done
better test first (won't work if you have sub dir. in your dirA and dirB).
pls make your target dir (dirC in the example) first before running the cmd
(works in bash shell):
files
and
another |
|
f*********e 发帖数: 8453 | 3 for f1 in $(ls dirA); do if [ -f dirA/$f1 ];then mv dirA/$f1 dirB;fi; done
better test before you run this on your real target |
|
s*******r 发帖数: 3 | 4 Hi,
I made a "diff" to a directory and can't do a "patch" now.
What I did was:
diff -ruN dira dirb
"dira" and "dirb" are directory names. Then I deleted
"dirb".
Now, I have "dira" and want to generate "dirb". How can I
do it ?
Thanks!!! |
|
g****n 发帖数: 3313 | 5 谢谢!
我说不WORK那。。。。
还有,read dirA dirB以后,
后面怎么理由输入的数值那? 输入的dirA 变成了$1?
那么是否可以这么写: if [ if $1/$i] |
|
n*******n 发帖数: 7628 | 6
截至2010年3月,有5架L-1011型客机仍在服役[47]。包括: SAM洲际航空(1架),欧洲
大西洋航空(1架),Sky Capital(1架),精英航空(1架)和轨道科学公司(1架)。英国皇
家空军有九架三星式作为运输/加油机仍在服役。
A total of 162 DC-9 aircraft (all variants) were in commercial service as of
December 2010, including operators Delta Air Lines (34), ABX Air (28),
Aserca Airlines (18), USA Jet Airlines (7), Aeropostal-LAV (4), Laser
Airlines (4), Wimbi Dira Airways (4), and other operators with fewer
aircraft.[10] |
|
d****0 发帖数: 16 | 7 【 以下文字转载自 Living 讨论区 】
发信人: dira00 (Dira), 信区: Living
标 题: 1st time home buyer credit 被拒了
发信站: BBS 未名空间站 (Tue Aug 10 09:42:12 2010, 美东)
IRS说缺HUD-1 form or equivalent
我们没有HUD-1 form,只有寄过去了closing statement和attendance sheet. 这个应
该就是了吧?求知情人详解
怎么办啊
是现在申诉好还是明年再弄好呢
真麻烦啊 |
|
c*******u 发帖数: 1269 | 8 Tu Diras! (Spanish Textbook)
★ 发自iPhone App: ChineseWeb 7.8 |
|
s**********i 发帖数: 711 | 9
you need to add user B and set it to deny for DirA.
vice versa for DirB. |
|
p*******r 发帖数: 324 | 10 Tu Diras, 3rd edition, used by Miramar College in San Diego
Thanks a lot. |
|
p******e 发帖数: 58 | 11 再添几本
1.电磁卷in Berkley Physics Course, the other volumes are also
good, but not as good as this one. 中译本for this one is
really good.
2.Feynmann Physics Lectures. Hard to believe it is just a
lecture note! Really deep physics thinkings and brilliant ideas.
中译本是shit,好多句子还是英文语序.
3.Goldstein, Classic Mechanics. 虽与Jackson,席夫,共列为
物理留学必备,但比另两本好的多.
4.牛顿,自然哲学的数学原理. 只读过某中译本的一小部分, really
杰作!!! 好多论题可能我们当中绝大多数仍不会算.
再对Dirac那本量子力学原理说两句, 目前的量子力学教材基本都是
抄这本, 比如席夫,而曾谨言则是兼而抄之(both Dirac and Schiff).
可惜大家抄来抄去连Dira |
|