首页 软件开发 代码片段 shell ( Page 38 )

shell 564

#Shell
删除maven仓库中的LastUpdated文件

@echo off rem create by sunhao(sunhao.java@gmail.com) rem crazy coder rem 这里写你的仓库路径 set RE…

2015-01-18 146

#Shell
读十六位unicode码

#!/bin/bash cat /dev/stdin | while read -r line do for word in $line do /usr/bin/printf $w…

2015-01-18 181

#Shell
一键安装CDH

######################################################################### # File Name: ins…

2015-01-18 425

#Shell
Linux重启tomcat

#!/bin/sh # 执行脚本命令 "sh rt.sh 项目名" PRO_NAME=$1 #项目名 PRO_PID="" #项目进程ID PRO_PATH="/data/proj…

2015-01-17 949

#Shell
web安装脚本

#!/sbin/bash export PATH=$PATH:/bin:/sbin:/usr/sbin #检查是否root用户执行 if [[ "$(whoami)" != "ro…

2015-01-17 661

#Shell
linux shell获得本机ip地址

IP=`/sbin/ifconfig | grep 'inet addr:' | grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print …

2015-01-16 336

#Shell
CD唱片应用程序

#!/bin/bash menu_choice="" current_cd="" title_file="title.cdb" tracks_file="tracks.cdb" t…

2015-01-15 232

#Shell
我们来算一下余额宝的利滚利,现在存一万,十年后能拿多少钱

$now = Date; #当前时间加十年 $10year = $now.AddYears(10); $diff = $10year - $now; $money = 10513.…

2015-01-14 188

#Shell
Powershell打开文件对话框

Function Get-FileName($initialDirectory) { [System.Reflection.Assembly]::LoadWithPartialNa…

2015-01-12 808

#Shell
按天分割ngin日志并压缩

#!/bin/bash log_dir="/home/hosts_log" #日志目录 date_dir=`date -d "yesterday" +"%Y/%m/%d"` #备份…

2015-01-11 1,001

#Shell
Nginx 启动、停止、重启的脚本

#!/bin/sh # chkconfig: 345 86 14 # description: 启动,重启,停止nginx的shell脚本 NGINX_DIR=/opt/ngx e…

2015-01-11 739
1 36 37 38 39 40 47