命令行里操作有空格的文件多少有点不方便,最近也在学脚本,就根据一个重命令空白字符为下划线的脚本,梳理下。#!/bin/bash
#重命名文件计数
handle_file=0
found_mark=0
forfile_namein*;do
#通过grep的返回值来判断
echo"$file_name"|grep-q""
if[$?-eq$found_mark];then
fi..
分类:
其他好文 时间:
2014-11-26 06:43:37
阅读次数:
145
在Infopath中使用REST Web Service出现如下错误:XML data that is required for this form to function correctly cannot be found.解决方案:Specify host names (Preferred me...
分类:
Web程序 时间:
2014-11-25 14:25:00
阅读次数:
208
php-fpm解析PHP,"Noinputfilespecified","Filenotfound"的问题今天不幸中招了。大致记录一下几个原因:1、web根目录下文件不存在。这个解决方法就不用说了。2、php-fpm配置问题有可能是fastcgi.conf的配置问题,也有可能是用php-fpm启动用户造成的权限问题,还有可能是nginx..
分类:
Web程序 时间:
2014-11-24 22:44:01
阅读次数:
316
error C2440: 'static_cast' : cannot convert from ...to... 此种错误是由VC6的程序用VS打开而造成的(以前在VC6下完全正常运行的消息映射在其它版本下编译不通过),只要将函数的返回类型或参数类型改为对应的即可。unabletostartpr....
分类:
其他好文 时间:
2014-11-24 15:00:04
阅读次数:
303
[2012-11-24 11:33:58 - myProject] Found 2 versions of android-support-v4.jar in the dependency list,
[2012-11-24 11:33:58 - myProject] but not all the versions are identical (check is based on SHA-1...
分类:
移动开发 时间:
2014-11-24 13:40:24
阅读次数:
203
源于hdu1013题目描述:The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that...
分类:
其他好文 时间:
2014-11-23 18:54:41
阅读次数:
249
问题描述:
Suppose a sorted array is rotated at some pivot unknown to you beforehand.
(i.e., 0 1 2 4 5 6 7 might become
4 5 6 7 0 1 2).
You are given a target value to search. If found in the array ...
分类:
其他好文 时间:
2014-11-23 16:04:30
阅读次数:
133
将数列举出就可以了
DFS
Time Limit: 5000/2000 MS (Java/Others)
Memory Limit: 65536/32768 K (Java/Others)
Problem Description
A DFS(digital factorial sum) number is found by summing the ...
分类:
其他好文 时间:
2014-11-23 14:34:50
阅读次数:
154
NetworkError: 404 Not Found - http://xxxxxxxx/xx-font.woff解决方法 asp.net 中会遇到一个@font-face问题: NetworkError: 404 Not Found - http://xxxxxxxx/xx-font.woff修...
分类:
Web程序 时间:
2014-11-23 14:20:37
阅读次数:
178
apache2.4 安装出现如下错误
```
[lzz@localhost httpd-2.4.10]$ ./configure
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking for grep that handles long lines and -e....
分类:
Web程序 时间:
2014-11-23 00:44:13
阅读次数:
255