Chinaunix首页 | 论坛 | 博客
  • 博客访问: 389379
  • 博文数量: 199
  • 博客积分: 154
  • 博客等级: 入伍新兵
  • 技术积分: 1530
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-14 08:43
文章分类

全部博文(199)

文章存档

2015年(101)

2014年(97)

2011年(1)

发布时间:2015-09-11 17:16:31

#!/bin/bash<br />&nbsp;<br />netid="128.5.0."<br />n=0<br />for i in $(seq 1 254)<br />do<br />&nbsp; &nbsp; ping -c1 -W1 -n $netid$i &amp;&gt; /dev/null<br />&nbsp; &nbsp; if [ $? == 0 ]<br />&nbsp; &nbsp; then<br />&nbsp; &nbsp; &nbsp; &nbsp; echo -e "$netid$i is UP!"<br />&nbsp; &nbsp; .........【阅读全文】

阅读(1760) | 评论(0) | 转发(0)

发布时间:2015-09-10 15:01:56

<span style="font-size:14px;color:#337FE5;">cat $access_file | awk '{print $1}' | sort |uniq -c | sort -rn | head -n 10<br style="color:#0000FF;font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;" /><span style="font-family:Verdana, Geneva, .........【阅读全文】

阅读(1626) | 评论(0) | 转发(0)

发布时间:2015-09-08 11:57:02

<span style="font-size:14px;color:#FF9900;">awk -F: 'BEGIN{printf "%-15s%-7s%s\n%-s\n", "Username","UID","GID","=========================="} $3 &gt;= 500 &amp;&amp; $3 != 65534 {printf "%-15s%-7s%s\n", $1,$3,$4} END{printf "%s\n%s\n", "==========================","List Over"}' /etc/passwd<br /><spa.........【阅读全文】

阅读(1750) | 评论(0) | 转发(0)

发布时间:2015-09-08 11:28:08

......【阅读全文】

阅读(1855) | 评论(0) | 转发(0)

发布时间:2015-08-29 11:55:26

<pre class="displaycode" style="margin-top:0px;margin-bottom:0px;padding:0px;border:0px;outline:0px;font-size:inherit;vertical-align:baseline;background-color:#FFFFFF;">#!/bin/bashecho "Please enter your first and last name:"read YDecho "Hellow $YD , welcome to bash scripting ...!"exit 0</pre>.........【阅读全文】

阅读(1576) | 评论(0) | 转发(0)

发布时间:2015-08-06 20:37:09

#!/usr/bin/expect<br />cd /usr/local/spes/<br />spawn ./spes -i -u w00170949<br />expect "password:"<br />send "wq_5230056\r"<br />interact<br /><br />放在/etc/init.d/boot.local,开机自运行。<br />......【阅读全文】

阅读(1667) | 评论(4) | 转发(0)

发布时间:2015-07-06 18:49:17

#!/bin/bash<br />#sort.sh<br />sort -C file.py &nbsp; &nbsp; &nbsp; &nbsp; #检查<br />if [ $? -eq 0 ];then<br />&nbsp; &nbsp; echo Sorted;<br />else<br />&nbsp; &nbsp; echo Unsorted;<br />fi<br />......【阅读全文】

阅读(957) | 评论(0) | 转发(0)

发布时间:2015-07-01 14:17:10

大写转小写:echo "HELLO WHO IS THIS" | tr 'A-Z' 'a-z'

......【阅读全文】

阅读(989) | 评论(0) | 转发(0)

发布时间:2015-06-30 19:41:19

find source_code_path -type f -name "*.c" -print0 | xargs -0 wc -l &nbsp; &nbsp;#输入定界符\0......【阅读全文】

阅读(904) | 评论(0) | 转发(0)

发布时间:2015-06-30 19:18:35

<p style="margin-top:0px;margin-bottom:20px;line-height:28.796875px;color:#333333;font-family:微软雅黑, 宋体, arial;white-space:normal;background-color:#FFFFFF;">#!/bin/bash</p><div style="padding:0px;margin:0px;color:#333333;font-family:微软雅黑, 宋体, arial;line-height:28.796875px;white-space:.........【阅读全文】

阅读(882) | 评论(0) | 转发(0)
IFS

发布时间:2015-06-30 19:18:01

<div style="padding:0px;margin:0px;color:#333333;font-family:微软雅黑, 宋体, arial;line-height:28.796875px;white-space:normal;background-color:#FFFFFF;">#!/bin/bash</div><div style="padding:0px;margin:0px;color:#333333;font-family:微软雅黑, 宋体, arial;line-height:28.796875px;white-space:normal;.........【阅读全文】

阅读(894) | 评论(0) | 转发(0)

发布时间:2015-06-30 19:17:24

<div style="padding:0px;margin:0px;color:#333333;font-family:微软雅黑, 宋体, arial;line-height:28.796875px;white-space:normal;background-color:#FFFFFF;">#!/bin/bash</div><div style="padding:0px;margin:0px;color:#333333;font-family:微软雅黑, 宋体, arial;line-height:28.796875px;white-space:normal;.........【阅读全文】

阅读(793) | 评论(0) | 转发(0)

发布时间:2015-06-30 19:16:46

<div style="padding:0px;margin:0px;color:#333333;font-family:微软雅黑, 宋体, arial;line-height:28.796875px;white-space:normal;background-color:#FFFFFF;">#!/bin/bash</div><div style="padding:0px;margin:0px;color:#333333;font-family:微软雅黑, 宋体, arial;line-height:28.796875px;white-space:normal;.........【阅读全文】

阅读(817) | 评论(0) | 转发(0)

发布时间:2015-06-30 19:15:38

<div style="padding:0px;margin:0px;color:#333333;font-family:微软雅黑, 宋体, arial;line-height:28.796875px;white-space:normal;background-color:#FFFFFF;">#!/bin/bash</div><div style="padding:0px;margin:0px;color:#333333;font-family:微软雅黑, 宋体, arial;line-height:28.796875px;white-space:normal;.........【阅读全文】

阅读(868) | 评论(0) | 转发(0)

发布时间:2015-06-30 19:14:44

<div style="padding:0px;margin:0px;color:#333333;font-family:微软雅黑, 宋体, arial;line-height:28.796875px;white-space:normal;background-color:#FFFFFF;">#!/bin/bash</div><div style="padding:0px;margin:0px;color:#333333;font-family:微软雅黑, 宋体, arial;line-height:28.796875px;white-space:normal;.........【阅读全文】

阅读(794) | 评论(0) | 转发(0)

发布时间:2015-06-30 19:12:26

<div style="padding:0px;margin:0px;color:#333333;font-family:微软雅黑, 宋体, arial;line-height:28.796875px;white-space:normal;background-color:#FFFFFF;">#!/bin/bash</div><div style="padding:0px;margin:0px;color:#333333;font-family:微软雅黑, 宋体, arial;line-height:28.796875px;white-space:normal;.........【阅读全文】

阅读(751) | 评论(0) | 转发(0)

发布时间:2015-06-30 19:11:44

<p style="margin-top:0px;margin-bottom:20px;line-height:28.796875px;color:#333333;font-family:微软雅黑, 宋体, arial;white-space:normal;background-color:#FFFFFF;">echo ${array_var[*]} 所有</p><p style="margin-top:0px;margin-bottom:20px;line-height:28.796875px;color:#333333;font-family:微软雅黑, .........【阅读全文】

阅读(763) | 评论(0) | 转发(0)

发布时间:2015-06-30 19:10:16

<div style="padding:0px;margin:0px;color:#333333;font-family:微软雅黑, 宋体, arial;line-height:28.796875px;white-space:normal;background-color:#FFFFFF;">#!/bin/bash</div><div style="padding:0px;margin:0px;color:#333333;font-family:微软雅黑, 宋体, arial;line-height:28.796875px;white-space:normal;.........【阅读全文】

阅读(761) | 评论(0) | 转发(0)

发布时间:2015-06-30 19:09:27

<div style="padding:0px;margin:0px;color:#333333;font-family:微软雅黑, 宋体, arial;line-height:28.796875px;white-space:normal;background-color:#FFFFFF;">#!/bin/bash</div><div style="padding:0px;margin:0px;color:#333333;font-family:微软雅黑, 宋体, arial;line-height:28.796875px;white-space:normal;.........【阅读全文】

阅读(702) | 评论(0) | 转发(0)

发布时间:2015-06-30 19:08:11

<div style="padding:0px;margin:0px;color:#333333;font-family:微软雅黑, 宋体, arial;line-height:28.796875px;white-space:normal;background-color:#FFFFFF;">#!/bin/bash</div><div style="padding:0px;margin:0px;color:#333333;font-family:微软雅黑, 宋体, arial;line-height:28.796875px;white-space:normal;.........【阅读全文】

阅读(739) | 评论(1) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册