自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(24)
  • 收藏
  • 关注

原创 A easy example to tell you what is "2>&1" in Perl

A easy example to tell you what is "2>&1" in Perl

2015-01-22 17:09:20 768

原创 How to debug in Perl ?

If it is a small program, you can use this way:   C:\Rebecca\script\perl>perl -d calculate.pl   Loading DB routines from perl5db.pl version 1.39_10 Editor support available.   Enter h or 'h h'

2015-01-22 11:19:18 734

原创 How to show Chinese character by using Perl?

You need to usemodule:  Unicode::Map   Where to get it? -http://search.cpan.org/~mschwartz/Unicode-Map-0.112/Map.pm Download Unicode-Map-0.112.tar.gz   How to install it? -unzip the file andgo

2015-01-22 09:20:54 1141

原创 How to generate exe for your PERL script?

The way I am using is PAR Packer.   1.      Downloadmodule PAR Packer: http://search.cpan.org/~rschupp/PAR-Packer-1.024/lib/PAR/Packer.pm 2.      InstallPAR Packer: 2.1 Unzipthe *.tar 2.2 Go to

2015-01-06 09:05:25 1257 1

原创 How to get all the members in user group by using LDAP in Perl?

About LDAP: LDAP stands for Lightweight Directory Access Protocol. It is usually used to fetch (and sometimes update) data in a directory of people. Using Net::LDAP module in Perl can provide a way

2015-01-04 14:05:26 913

原创 Error in perl matching

We got this error by running:   my $str = "reb,cheng"; $str = ~ s/,//; print $str, "\n";   seems everything is okay, but why? Here is the error message: C:\Rebecca\script\perl>perl status_v0.2

2015-01-04 13:40:06 369

原创 How to rmname by using cleartool?

How to rmname by using cleartool?   1.       Check what is the rmname command usage? cleartool rmname cleartool: Error: Directory pathname required. Usage: rmname [-c comment | -cfile pname | -

2015-01-04 13:36:01 467

原创 How to integrate LDAP in Perl?

If you try to use LDAP by adding "use Net::LDAP;"in your Perl script by you didn't have LDAP installed, you may probably get the following similar errors: C:\Rebecca\script\perl>perl status.pl Can't

2014-12-23 09:33:06 493

原创 How to remove the component VOB in Components?

By using command:  cleartool rmcomp Usage: rmcomp [-c comment | -cfile pname | -cq | -cqe | -nc]               [-force] component-selector ... Example: cleartool rmcomp -force rebecca_

2014-12-19 11:11:48 645

原创 使用sed和cut的一些小例子

关于SED: 修改第23行的内容:sed -i '23s/Applications/reb_app/g' reb_test.txt 删除最初三行:sed -i '1,3d' reb_test.txt 显示第二行:sed -n '2p' reb_test.txt 显示一个文件中1/3/5行中每行第1~5个字符:sed -n "1p;3p;5p" reb_t

2014-11-28 16:17:19 635

原创 Shell内部变量

$0:命令含命令所在的路径。 $#:传递给程序的总的参数数目。  $?:Shell程序在Shell中退出的情况,正常退出返回0,反之为非0值。 $*:传递给程序的所有参数组成的字符串。   Example: ! /bin/bash echo "program name is $0" echo "parameter passed to this program $#" echo "

2014-11-27 17:32:05 379

原创 Python/Perl/Shell - 注释-声明-运行

Something really basic: 开头: Shell  #!/bin/bash perl:  #!/usr/bin/perl python:  #! usr/bin/python 注释: perl 单行: #  多行: =pod comments =cut python 单行:# 多行:''' comments'''

2014-11-27 16:43:00 504

原创 python/perl/shell在windows下的安装

亲们想自己本地玩玩脚本么,下载一个呗: Python: 1.下载: http://www.python.org/download/ 2.设置环境变量 3.检查是不是安装好了: 在windows cmd下运行python Perl: 1. 下载active perl,哪里都有,官网地址:http://www.activestate.com/ 2.检查是不是安装好了:

2014-11-27 14:12:34 709

原创 C语言知识总结

指针的各种名字,换个马甲也得认识你啊。。 char * const p; //常量指针,p的值不可以修改  char const * p;//指向常量的指针,指向的常量值不可以改 const char *p; //和char const *p   int *p[n];-----指针数组,每个元素均为指向整型数据的指针。  int (*p)[n];------p为指向一维数组的指针,这个

2014-11-27 10:22:29 301

原创 Python知识总结2

产生随机数: Import random Random.random()    关于复制函数: Shutil.copyfile() Copy.copy() and copy.deepcopy()   1. copy.copy 浅拷贝 只拷贝父对象,不会拷贝对象的内部的子对象。 2. copy.deepcopy 深拷贝 拷贝对象及其子对象 a = [1, 2, 3, 4, ['a

2014-11-27 10:15:24 429

原创 Python小知识总结1

学习python时记录的一些知识点: Set  #非常有用啊,直接去除重复元素,缺点是输出结果没有排序 >>> list = ['c', 'b', 'b', 'b', 'd', 'b', 'c', 'a', 'a'] >>> b = set(list) >>> b set(['a', 'c', 'b', 'd']) >>> c = [i for i in b] >>> c

2014-11-27 10:10:14 408

原创 用shell脚本在linux下删除和替换文件

几种常用的文件替换用法: 查找并替换文件名: find ./ -name "*.pyc" -exec rename pyc pyc1 {} \; #将后缀为pyc的文件替换为后缀pyc1   查找并替换文件里的内容: grep -rl bin ./ | xargs sed -i "s/bin/bina/g"  #将当前目录下文件中bin的字符串替换为bina 删除文

2014-11-27 09:43:16 558

原创 有用的python学习资料link,就两个,推荐!!

python简明编程:#里面很多小例子,跟着做做,很基本。天下代码一大抄,但是基本功一定要好啊。。 http://sebug.net/paper/python/index.html python: 从新手到高手:#目前还不是高手,但是比《简明》要深奥了许多。。 http://sebug.net/paper/books/dive-into-python/ 个人感觉比一些文库里面的

2014-11-26 17:20:12 483

原创 Examples in using config spec in ClearCase

Just show some examples when using config spec, will have it updated with more examples soon: Checkout the latest on branch Rebecca and then make yourownbranch: element * CHECKEDOUT element *

2014-11-24 10:47:52 401

原创 查找所有VOB中mastership的状态

mastership有两种状态:disable和enable 想查找所有mastership的状态?

2014-11-14 15:25:07 531

原创 Perl 注释方法

1. 单行注释 # 2.多行注释 用  =pod

2014-11-13 14:12:56 787

原创 How to create a UCM Project VOB(PVOB) in Rational ClearCase?

We will create a PVOB with component in the component VOB: 1. Open VOB Creation Wizard first

2014-11-12 13:33:30 1034

原创 How to create new view by using cleartool command in Clearcase?

How to create view by using cleartool command? 1. C:\Users\E885889>cleartool mkview cleartool: Error: View directory pathname must be specified. cleartool: Error: View tag must be specified. Usag

2014-11-12 10:09:45 1669

转载 Clearcase/Git的区别和优缺点

Git 是 Linus Torvalds 最近实现的源代码管理软件。Git 是一个快速、可扩展的分布式版本控制系统,它具有极为丰富的命令集,对内部系统提供了高级操作和完全访问。   优点: 1).免费,开源项目android都用它。 2). 分支更快、更容易。 3). 支持离线工作,本地提交可以稍后提交到服务器上。  4). Git 提交都是原子的,且是整个项目范围

2014-11-11 15:45:32 2330

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除