perl array
(RFC) Arrays: A Tutorial/ReferenceArray is a type of Perl variable.An array variable is an ordered collection of any number (zero or more) of elements.Each element in an array has an index which i...
perl 第三章
写一个程序,将一些字符串(不同的行)读入一个列表中,逆向输出它。如果是从键盘输入的,那在Unix 系统中应当使用CTRL+D 表明end-of-file,在Windows 系统中使用CTRL+Z.$ cat 3.1#!/usr/bin/perl@lines=<STDIN>;@re...
interview tips
Perl 概念,语法,特性 Whydo you use Perl? Perl is a powerful free interpreter. Perl is portable, flexibl...
Vi Editing Mode
What to TypeResultaappend after the cursoriinsert before the cursorIText inserted at beginning of lineAText inserted at end of lineRText overwrites existing textWhat to TypeResultxdeletes the characte...
grep 命令详解
用‘grep’搜索文本文件如果您要在几个文本文件中查找一字符串,可以使用‘grep’命令。‘grep’在文本中搜索指定的字符串。举个例子:假设您正在‘/usr/src/linux/Documentation’目录下搜索带字...
shell-crontab
cron是一个UNIX工具,使用cron后台进程使得任务能够以后台方式在特定时间自动执行。这些任务通常叫做cron jobs. crontab是一个包括在特定时间要运行的cron记录的  ...
shell Permissions
This lesson will cover the followingcommands:chmod - modifyfile access rightssu - temporarilybecome the superuserchown - changefile ownershipchgrp - change afile's group ownershipFile...
awk用法小结
1. awk简介awk是一种编程语言,用于在linux/unix下对文本和数据进行处理。数据可以来自标准输入、一个或多个文件,或其它命令的输出。它支持用户自定义函数和动态正则表达式等先进功能,是linux/unix下的一个强...
正则表达式Sed
绝对match查找 : grep -w ab 2.txt 结果只有ab会打印出来sed -n '/\ba\b/p' 2.txt 结果只有a会打印出来 绝对匹配1. Sed简介sed 是一种在线编辑器,它一次处理一行内容。处理时,...
Morgan Stanley
df|grep run|awk '{print $5}'|sed 's/%//g' sed [options] 'command' file(s) sed [options] -f scriptfile file(s) awk ' pattern {actio...
常用查看Linux系统信息命令
系统# uname -a # 查看内核/操作系统/CPU信息# head -n 1 /etc/issue # 查看操作系统版本# cat /proc/cpuinfo # 查看CPU信息# hostname # 查看计算机名# lspci -tv ...
UNIX Quick Reference Sheet
control-zStop (don't kill) the foreground job, and then return to the shelljobsCheck the status of jobs in the current sessionps -u usernameCheck the status of processes, including those from...
production support
Normal 0 7.8 磅 0 2 false false false EN-US ZH-CN X-NONE</w:LidThemeComplexScript. ...
K shell Operators
touch test vi test 编辑脚本 test #!/bin/ksh who |wc -l rmdir test.1 ...
練習
mailopt=FALSEinterval=60file=""while getopts mf:t: optiondo case "$option" in m) mailopt=TRUE;; &nb...
shell程序的结束状态
在Unix中,程序结束时会返回一个状态,这个状态可以指示程序是否成功执行。如果使用了pipeline,那么返回的是最后一个程序的状态。 &nb...
sort命令
sort命令可以用來排序,如$ sort namesCharlieEmanuelFredLucyRalphTonyTony$默認按升序排列,排序的依據是字符的編碼。下面介紹一下sort的一些常用參數1. -u 選項該選項可以用來過濾重...
20091230 aix
crontab -l>huangyan20091230 ---copy information to the root of server