
unix&linux
doctordenis
enjoy life
展开
-
check file exist bash script
we can use [ -f file.name ] ,this shell to check whether exists or not. however we should take a close look at the writting format. there should be must a space between bracket [ ], if there is a原创 2013-09-02 16:54:27 · 1944 阅读 · 0 评论 -
shell script - usuage of the for loop
for varname in listdo command1 command2 ..donefor, in, do and done are keywords“list” contains list of values. The list can be a variable that contains several words separated by spaces. If l原创 2013-09-02 15:45:29 · 624 阅读 · 0 评论 -
Sample Shell Script To Loop Through All Files
the following shell script are looping all files of a folder ,and then find the keyword from every fileFILES=/path/to/*for f in $FILESdo echo "Processing $f file..." # take action on each file原创 2013-09-03 11:18:52 · 637 阅读 · 0 评论 -
How will you recursively search for presence of a particular text under multiple folders unix?
find myproject -type f 1xargs grep"CashEnum" {} /dev/null\;原创 2013-09-03 16:25:34 · 788 阅读 · 0 评论 -
linux centos installs svn server with http
Install SVN (Subversion) Server on Fedora 19/18/17/16/15/14, CentOS 6.4/6.3/6.2/6.1/6/5.9, Red Hat (RHEL) 6.4/6.3/6.2/6.1/6/5.91. Change root usersu -## OR ##sudo -i2. Inst翻译 2013-10-30 14:55:53 · 599 阅读 · 0 评论