亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区
Chinaunix
標題:
如何用shell自動拷貝啊
[打印本頁]
作者:
wzltian
時間:
2014-05-24 11:31
標題:
如何用shell自動拷貝啊
如a.txt
aa|bb|cc
df|dd|dd
如何執(zhí)行一個shell后,如 sh copy.sh b.txt 3 就把a.txt中的內(nèi)容自動拷貝3次到b.txt中,我用了for循環(huán)沒有達到目的。
b.txt
aa|bb|cc
df|dd|dd
aa|bb|cc
df|dd|dd
aa|bb|cc
df|dd|dd
作者:
這個冬天不冷
時間:
2014-05-24 11:41
for ((i=0;i<3;i++))
do
cat a.txt >> a.txt
done
復(fù)制代碼
作者:
q1208c
時間:
2014-05-24 15:50
回復(fù)
2#
這個冬天不冷
這個辦法不行的.
# for ((i=0;i<3;i++)); do cat a.txt >> a.txt ; done
cat: a.txt: input file is output file
cat: a.txt: input file is output file
cat: a.txt: input file is output file
復(fù)制代碼
改成 b.txt 才對.
for ((i=0;i<3;i++)); do cat a.txt >> b.txt ; done
復(fù)制代碼
作者:
yestreenstars
時間:
2014-05-26 00:36
#!/bin/bash
for((i=0;i<$2;i++))
do
cat a.txt >> $1
done
復(fù)制代碼
作者:
這個冬天不冷
時間:
2014-05-26 09:17
回復(fù)
3#
q1208c
。。。。
筆誤
歡迎光臨 Chinaunix (http://www.72891.cn/)
Powered by Discuz! X3.2