- 博客(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 777
原创 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_10Editor support available. Enter h or 'h h'
2015-01-22 11:19:18 742
原创 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.pmDownload Unicode-Map-0.112.tar.gz How to install it?-unzip the file andgo
2015-01-22 09:20:54 1153
原创 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.pm2. InstallPAR Packer:2.1 Unzipthe *.tar2.2 Go to
2015-01-06 09:05:25 1270 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 927
原创 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 380
原创 How to rmname by using cleartool?
How to rmname by using cleartool? 1. Check what is the rmname command usage?cleartool rmnamecleartool: Error: Directory pathname required.Usage: rmname [-c comment | -cfile pname | -
2015-01-04 13:36:01 472
原创 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.plCan't
2014-12-23 09:33:06 503
原创 How to remove the component VOB in Components?
By using command: cleartool rmcompUsage:rmcomp [-c comment | -cfile pname | -cq | -cqe | -nc] [-force] component-selector ...Example:cleartool rmcomp -force rebecca_
2014-12-19 11:11:48 652
原创 使用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 644
原创 Shell内部变量
$0:命令含命令所在的路径。$#:传递给程序的总的参数数目。 $?:Shell程序在Shell中退出的情况,正常退出返回0,反之为非0值。$*:传递给程序的所有参数组成的字符串。 Example:! /bin/bashecho "program name is $0"echo "parameter passed to this program $#"echo "
2014-11-27 17:32:05 387
原创 Python/Perl/Shell - 注释-声明-运行
Something really basic:开头:Shell #!/bin/bashperl: #!/usr/bin/perlpython: #! usr/bin/python注释:perl单行: # 多行:=podcomments=cutpython单行:#多行:''' comments'''
2014-11-27 16:43:00 512
原创 python/perl/shell在windows下的安装
亲们想自己本地玩玩脚本么,下载一个呗:Python:1.下载: http://www.python.org/download/2.设置环境变量3.检查是不是安装好了:在windows cmd下运行pythonPerl:1. 下载active perl,哪里都有,官网地址:http://www.activestate.com/2.检查是不是安装好了:
2014-11-27 14:12:34 717
原创 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 307
原创 Python知识总结2
产生随机数:Import randomRandom.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 436
原创 Python小知识总结1
学习python时记录的一些知识点:Set #非常有用啊,直接去除重复元素,缺点是输出结果没有排序>>> list = ['c', 'b', 'b', 'b', 'd', 'b', 'c', 'a', 'a']>>> b = set(list)>>> bset(['a', 'c', 'b', 'd'])>>> c = [i for i in b]>>> c
2014-11-27 10:10:14 416
原创 用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 575
原创 有用的python学习资料link,就两个,推荐!!
python简明编程:#里面很多小例子,跟着做做,很基本。天下代码一大抄,但是基本功一定要好啊。。http://sebug.net/paper/python/index.htmlpython: 从新手到高手:#目前还不是高手,但是比《简明》要深奥了许多。。http://sebug.net/paper/books/dive-into-python/个人感觉比一些文库里面的
2014-11-26 17:20:12 495
原创 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 * CHECKEDOUTelement *
2014-11-24 10:47:52 410
原创 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 1048
原创 How to create new view by using cleartool command in Clearcase?
How to create view by using cleartool command?1.C:\Users\E885889>cleartool mkviewcleartool: Error: View directory pathname must be specified.cleartool: Error: View tag must be specified.Usag
2014-11-12 10:09:45 1679
转载 Clearcase/Git的区别和优缺点
Git 是 Linus Torvalds 最近实现的源代码管理软件。Git 是一个快速、可扩展的分布式版本控制系统,它具有极为丰富的命令集,对内部系统提供了高级操作和完全访问。 优点:1).免费,开源项目android都用它。2). 分支更快、更容易。3). 支持离线工作,本地提交可以稍后提交到服务器上。 4). Git 提交都是原子的,且是整个项目范围
2014-11-11 15:45:32 2356
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人