Perl编程基础与grep命令替代方案
1. Perl命令别名的使用
在Perl编程中,为了简化常用命令的选项选择,我们可以使用Shell别名。以下是不同模式下的别名定义:
- 行模式别名 :
- alias perl_o=' perl -wl ' # Output Generation
- alias perl_io=' perl -wnl ' # Input/Output Processing
- alias perl_iop=' perl -wpl ' # I/O Processing, with printing
- alias perl_f=' perl -wnla ' # Field Processing
- alias perl_fp=' perl -wpla ' # Field Processing, with printing
- 段落模式别名 :
- alias Perl_o=' perl -00 -wl ' # Output Generation
- alias Perl_io=' perl -00 -wnl ' # Input/Output Processing
- alias Perl_iop=' perl -00 -wpl ' # I/O Processing, with printing
超级会员免费看
订阅专栏 解锁全文
33

被折叠的 条评论
为什么被折叠?



