码迷,mamicode.com
首页 >  
搜索关键字:shell while    ( 55956个结果
Linux shell脚本中shift的用法说明
Linux shell脚本中shift的用法说明 shift命令用于对参数的移动(左移)。 示例1:依次读取输入的参数并打印参数个数: run.sh: #!/bin/bash while [ $# != 0 ];do echo "第一个参数为:$1,参数个数为:$#" shift done 输入如下命令运行:run.sh a b c d e...
分类:系统相关   时间:2014-05-01 22:06:54    阅读次数:475
Requirement-Driven Linux Shell Programming
Requirement-Driven Linux Shell ProgrammingRequirement-Driven Linux Shell ProgrammingTable of Contents1. Where can I find the basic Material about Linu...
分类:系统相关   时间:2014-05-01 20:40:05    阅读次数:678
流编辑器 SED 十分钟入门全教程
Sed 是什么?Sed 是一个脚本型的编译器,是非交互式的,也就是说sed与常见的编译器不同(比如说vim),sed没有交互式的编辑界面以及光标移动或者庞大的快捷键/功能,sed 的使用就是很简单的一个脚本行,相当极客吧?Sed 是最早支持正则表达式的工具之一,并且至今仍然被人们用做文本处理,特别是在其强大的替代命令。本文力求详尽的介绍 sed 的使用,希望你能喜欢!...
分类:其他好文   时间:2014-04-30 22:33:38    阅读次数:360
linux学习:常用shell语句
一、正则表达式的使用 cd /usr/share/dict 1、找出words文件下所有以a开头t结尾的单词 egrep "^a.*t$" words 2、匹配以abcde开头,以at结尾的单词 egrep "\" words 3、以大写字母开头,以t结尾 egrep "^[[:upper:]]t$" words 二、管道的使用 egrep "^a.*t$" words|wc -...
分类:系统相关   时间:2014-04-30 22:32:38    阅读次数:372
Perl生成excel文件
#生成excel #ljl use Spreadsheet::WriteExcel; my %us; while(($key, $value) = each %us){ print "$key|$value\n"; } # 创建一个新的EXCEL文件 my $workbook = Spreadsheet::WriteExcel->new('poi_count_top15....
分类:其他好文   时间:2014-04-29 13:33:21    阅读次数:327
[TroubleShooting]Neither the partner nor the witness server instance for database is availble
Problem: You are trying to setup a mirroring on a Database called xxxDB(SQL server 2012). You are getting this error while trying to setup mirroring. “Neither the partner nor the witness server ins...
分类:数据库   时间:2014-04-29 13:33:20    阅读次数:444
SSH学习之一 OpenSSH基本使用
在Linux系统中,OpenSSH是目前最流行的远程系统登录与文件传输应用,也是传统Telenet、FTP和R系列等网络应用的换代产品。其中,ssh(Secure Shell)可以替代telnet、rlogin和rsh,scp(Secure Copy)与sftp(Secure FTP)能后替代ftp。...
分类:其他好文   时间:2014-04-29 13:28:21    阅读次数:357
链表《2》使用函数操作链表
使用函数操作链表 1:计算链表中结点的个数:定义一个Length_list()函数用于计算链表中结点的个数 函数代码: //计算链表中结点的个数 void Length_list(PNODE pHead) { PNODE p = pHead->pNext; int len = 0; while(NULL != p) { len++; p = p->pNext; ...
分类:其他好文   时间:2014-04-29 13:28:21    阅读次数:302
Eclipse中Easy Shell插件配置PowerCmd
懒人配置一份...
分类:系统相关   时间:2014-04-29 13:22:21    阅读次数:452
创建Hive/hbase相关联的表异常
FAILED: Error in metadata: java.lang.RuntimeException: MetaException(message:org.apache.hadoop.hive.serde2.SerDeException org.apache.hadoop.hive.hbase.HBaseSerDe: columns has 3 elements while hbase.columns.mapping has 4 elements (counting the key if implic...
分类:其他好文   时间:2014-04-29 13:17:21    阅读次数:387
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!