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

shell 564

#Shell
linux批量转换整个目录下的文件编码为UTF-8

#!/bin/bash - #===========================================================================…

2015-09-01 384

#Shell
截取日志

#!/bin/sh logFileName="pcrf_stack.log" startTime="2014-10-11T22:30:00" endTime="2014-10-11…

2015-09-01 617

#Shell
下载国家地理每日更新图片

#!/bin/bash #Description: # download national geographic photo of the day and set it as ba…

2015-09-01 452

#Shell
查看我最常用的 10 个 Linux 命令

history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head 2141 git 967…

2015-08-30 796

#Shell
我的nginx多server日志分割脚本

# !/usr/bin/bash log_dir="/usr/local/nginx/logs" back_log_dir="/disk110/nginx_log" time=`d…

2015-08-30 785

#Shell
查看linux占用内存/CPU最多的进程

ps -aux | sort -k4nr | head -n 10

2015-08-29 893

#Shell
参考/etc/rc.d/init.d/smb编写的单Tomcat起停rc脚本

#! /bin/sh # chkconfig: 35 96 04 # description: Apache-Tomcat service script. # Version: #…

2015-08-29 280

#Shell
图片批量压缩大小

#!/bin/bash # yum install ImageMagick # cd /img/dir for file in */*.jpg; do to_middle_file…

2015-08-26 287

#Shell
linux用shell脚本直接进入python virtualenv环境

#!/bin/bash cd /home/luo/pythonevn1/bin source activate

2015-08-26 815

#Shell
My linux's bash script

#!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export…

2015-08-26 964

#Shell
LazyManage运维批量Linux系统管理脚本

#!/bin/bash #ShellName:LazyManage.sh #Conf:serverlist.conf #By:peter.li six #2014-04-14 #L…

2015-08-25 530

#Shell
shell 写的动画效果

#!/bin/bash FACE_GIRL="?^_^?" FACE_BOY="?^O^?" N_COLS=`tput cols` N_LINES=`tput lines` BLA…

2015-08-25 490
1 11 12 13 14 15 47