没有该文件则创建,有则 ls -l 输出文件信息。 #!/bin/bash
echo "enter the name:"
read filename
if test -e $filename ; then
ls -l $filename
else
touch $filename
fi 输出 enter the name:
sss.sh
-rwxr-xr-x 1 root root 147 Dec 3 09:02 sss.sh …
首先要在项目->添加引用->COM中添加Microsoft Office Web Components ,然后定义一个OWC.SpreadsheetClass 如:Dim xlsheet As New OWC.SpreadsheetClass 然后就可以向sheet中添加数据了,使用xlsheet.Cells(2, 2) "表格填充内容&q…