07 2021 档案

摘要:[user] email = email.com name = username [credential] helper = store [alias] st = status ci = commit co = checkout br = branch lg = log -20 --graph -- 阅读全文
posted @ 2021-07-16 23:29 安小白learning 阅读(36) 评论(0) 推荐(0) 编辑
摘要:Git reset Some times we made many commit during PR , we want to combine them to one commit We can see, I create 4 commits totally. 1 backup the branch 阅读全文
posted @ 2021-07-16 23:27 安小白learning 阅读(69) 评论(0) 推荐(0) 编辑
摘要:一、system perl也可以用system调用shell的命令,它和awk的system一样,返回值也是它调用的命令的退出状态. [root@AX3sp2 ~]# cat aa.pl #! /usr/bin/perl -w $file = "wt.pl"; system("ls -l wt.pl 阅读全文
posted @ 2021-07-16 10:05 安小白learning 阅读(856) 评论(0) 推荐(0) 编辑
摘要:1、centos/redhat下查看某个文件或命令属于哪个rpm包: $ yum provides /etc/passwd 或者 $ rpm -qf /etc/passwd 阅读全文
posted @ 2021-07-15 10:38 安小白learning 阅读(515) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/ahilll/article/details/82712694 foreach (<STDIN>){ chomp; if (/gao/){ print "$_ was matched 'gao'\n"; } } 上面使用了默认的参数变量$,它表示forea 阅读全文
posted @ 2021-07-15 10:35 安小白learning 阅读(56) 评论(0) 推荐(0) 编辑
摘要:最近工作中用到了 perl 脚本, 涉及到了参数传递, 但是参数传过来值为1. sub valid_value{ my $value = @_; print "$value\n"; } 第一点: perl 脚本函数传参 https://www.cnblogs.com/tobecrazy/archiv 阅读全文
posted @ 2021-07-15 01:06 安小白learning 阅读(214) 评论(0) 推荐(0) 编辑
摘要:最近编写一个perl脚本时候,编译出现了Global symbol “” requires explicit package name at ""的错误,后发现是由于使用use strict;造成,那么问题解决方法应该有两个: 一,使用use strict; ,修改其他代码,如下: 1,首先,检查你 阅读全文
posted @ 2021-07-15 00:40 安小白learning 阅读(382) 评论(0) 推荐(0) 编辑
摘要:MakeFile 1. .SILENT出现在目标“.SILENT ”的依赖列表中的文件,make在创建这些文件时,不打印出重建此文件所执行的命令。同样,给目标“.SILENT ”指定命令行是没有意义的。没有任何依赖文件的目标“.SILENT ”告诉make在执行过程中不打印任何执行的命令。 http 阅读全文
posted @ 2021-07-13 21:38 安小白learning 阅读(218) 评论(0) 推荐(0) 编辑
摘要:1 configure IP2:永久性修改:2.1:修改IP地址修改/etc/sysconfig/network-scripts/ifcfg-eth0文件,如果有多张网卡,则修改相应的网卡# vi /etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth 阅读全文
posted @ 2021-07-13 21:32 安小白learning 阅读(197) 评论(0) 推荐(0) 编辑
摘要:$result = sprintf('The %s is %d', 'answer', 42); 区别 command description print 打印信息,可以输出到文件里 printf 可以整理信息的格式,可以输出到文件里。与sprintf类似,区别是可以打印 sprintf 可以整理信 阅读全文
posted @ 2021-07-13 21:26 安小白learning 阅读(39) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示