shell
iteye_15836
这个作者很懒,什么都没留下…
展开
-
centos安装ruby及部分libs
centos安装ruby及部分libs #!/bin/bash installPath=/root/installPath echo "安装ruby及其依赖" yum -y install gdbm-devel libdb4-devel libffi-devel libyaml libyaml-devel ncurses-devel openssl-devel readline-devel tcl-devel cd $installPath/rubyPkg wget https://cache.ruby原创 2021-09-01 19:04:41 · 151 阅读 · 0 评论 -
数据库每天自动备份Shell脚本
备份脚本:/opt/sql/sqlbak.sh #!/bin/sh DATETIME=$(date +%Y%m%d) mysqldump -uroot gamedata > /home/cloud-user/sql/bak/gamedata.$DATETIME.sql mysqldump -uroot userdata > /home/cloud-user/sql/b...2015-06-01 18:07:44 · 230 阅读 · 0 评论 -
OSX用户登陆后自动运行相应shell脚本
原标题: Launch shell script silently at login In OSX I needed a shell script to execute at login. There are a few different ways to perform this so I thought it might be helpfulto document what yo...原创 2013-11-25 12:52:54 · 175 阅读 · 0 评论 -
统计demo目录下,js文件数量
1.统计demo目录下,js文件数量: find demo/ -name "*.js" |wc -l 2.统计demo目录下所有js文件代码行数: find demo/ -name "*.js" |xargs cat|wc -l 或 wc -l `find ./ -name "*.js"`|tail -n1 3.统计demo目录下所有js文件代码行数,过滤了空行: find /demo...原创 2013-11-25 12:54:20 · 1336 阅读 · 0 评论 -
Intellij IDEA run shell base on BashSupport plugin
在Intellij IDEA中,通过插件BaseSupport允许shell脚本时候,发现中文处理的并不是很好。 shell脚本内容: #!/bin/sh java -jar ./mybatis-generator-core_libs/mybatis_generator.jar -configfile ./db/resources/userdata/account.xml -...2014-01-10 12:19:10 · 835 阅读 · 0 评论