Linux中exec的用法总结先总结一个表:exec命令作用execls在shell中执行ls,ls结果显示结束后不返回原来的的目录中,而是/(根目录)execfile将file中的内容作为标准写出exec3file将写入fd4中的内容写入file中ls>&4Ls将不会有显示,直接写入fd4中了,即...
分类:
系统相关 时间:
2014-08-12 18:03:24
阅读次数:
232
#!/bin/bash
#unzip?zip&tar?file
function??untarfile(){
for?i?in?$(?ls?.?|grep?-v?.sh)
do
val=$(echo?$i?|?grep?".zip$"?|wc?-l)
if?[[?"$val"??-eq??1?]];then
dirname=$(echo?...
分类:
其他好文 时间:
2014-08-12 17:47:04
阅读次数:
237
<formaction=""method="post"enctype="multipart/form-data">
请选择要上传的文件:<inputtype="file"name="myFile"value=""/><inputtype="submit"value="开始上传"/>
</form>
<?php
header("content-type:text/html;charset=utf-8");
echo"<pre..
分类:
其他好文 时间:
2014-08-12 17:38:15
阅读次数:
204
如何使普通用户创建的文件具有超级用户的权限呢...
分类:
其他好文 时间:
2014-08-12 17:31:34
阅读次数:
253
Check your gcc version. If it is less than 4.7, you need use another printer.py file. Get the file fromhttp://gcc.gnu.org/svn/gcc/branches/gcc-4_6-bra...
分类:
数据库 时间:
2014-08-12 16:43:44
阅读次数:
226
Windows7 SP1旗舰版 32位官方原版下载:ed2k://|file|/cn_windows_7_ultimate_with_sp1_x86_dvd_618763.iso|2651877376|D6A0D9FDB8C67A65B92B4C1AC197109C|/Windows7 SP1旗舰版...
文件处理f= file('poem.txt', 'w')# open for 'w'riting模式可以为读模式('r')、写模式('w')或追加模式('a')f.write(poem) # write text to filef.close()f = file('poem.txt')# if no...
分类:
编程语言 时间:
2014-08-12 16:37:34
阅读次数:
203
指令名称 : chmod 使用权限 : 所有使用者 使用方式 : chmod [-cfvR] [--help] [--version] mode file... 说明 : Linux/Unix 的档案调用权限分为三级 : 档案拥有者、群组、其他。利用 chmod 可以藉以控制档案如何被他人所调用。 ...
分类:
其他好文 时间:
2014-08-12 16:36:14
阅读次数:
174
名称:cat 使用权限:所有使用者 使用方式:cat [-AbeEnstTuv] [--help] [--version] fileName 说明:把档案串连接后传到基本输出(萤幕或加 > fileName 到另一个档案) 参数: -n 或 --number 由 1 开始对所有输出的行数编号 -.....
分类:
其他好文 时间:
2014-08-12 16:35:54
阅读次数:
197