LINUX
文章平均质量分 90
大镇
老家-河北行唐
所有的苦,以后都会笑着说出来
展开
-
Shell if语句用法小结
在shell编程中,常常会用if来判断条件,从而控制程序的流程分支。if语句是非常简单,跟其他语言差不多,不过,在shell中,要注意一些细节是很有必要的。 在这里,不给出if的基本语法格式,网上搜索下,很多的。这里给出个简单的例子: #! /bin/sh - name=`basename原创 2016-07-12 14:42:17 · 462 阅读 · 0 评论 -
linux awk命令详解
转载自:http://www.cnblogs.com/ggjucheng/archive/2013/01/13/2858470.html 使用方法 awk '{pattern + action}' {filenames} 尽管操作可能会很复杂,但语法总是这样,其中 pattern 表示 AWK 在数据中查找的内容,而 action 是在找到匹原创 2016-07-12 14:42:27 · 554 阅读 · 0 评论 -
shell脚本--使用for if date awk
1、count_ID.sh#!/bin/bashfor ((i=0;ido ct=`mysql -h 192.168.60.154 -P 3308 --database=vim -BNe"select count(*) from vehicle_partition where RoadMonitorStationId_=$i;"` at=300000if [ $ct -原创 2016-07-12 14:42:37 · 319 阅读 · 0 评论 -
Shell之Here Document
Shell之Here Document 2010-06-25 17:44:59 标签:shell bash 休闲 here document 职场 原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://jeremiah.blog.51cto.com/539865/339211原创 2016-07-12 14:42:39 · 406 阅读 · 0 评论