37,742
社区成员
发帖
与我相关
我的任务
分享
In [90]: "2013070312345.txt".endswith("12345.txt")
Out[90]: True
In [91]: "2013070312345.txt".endswith("312345.txt")
Out[91]: True
In [92]: "2013070312345.txt".endswith("412345.txt")
Out[92]: False
[/quote]
啊啊啊啊啊啊啊啊啊啊啊啊啊,天才啊啊啊In [90]: "2013070312345.txt".endswith("12345.txt")
Out[90]: True
In [91]: "2013070312345.txt".endswith("312345.txt")
Out[91]: True
In [92]: "2013070312345.txt".endswith("412345.txt")
Out[92]: False
for f in `ls *.txt`
do
if [[ -f 20130703%f ]]
then
cat $f >> 20130703$f
fi
done