![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
Eng163Word
这个作者很懒,什么都没留下…
展开
-
awk process ' and "
Claim: below content is learnt from other people. 双引号:awk ‘{print “\”“}’ #放大:awk ‘{print ” \” “}’使用“”双引号把一个双引号括起来,然后用转义字符\对双引号进行转义,输出双引号。单引号:awk ‘{print “’\””}’ # 放大: awk ‘{pri...转载 2018-08-15 17:54:59 · 191 阅读 · 0 评论 -
linux =~ shell
#1 The =~ Regular Expression match operator no longer requires quoting of the pattern within [[ … ]].把测试条件换成下面这样就成功了。if [[ “newip"= ([0−9]1,3.)3[0−9]1,3newip"= ([0−9]1,3.)3[转载 2018-08-16 09:33:36 · 202 阅读 · 0 评论 -
linux array
#! /bin/bash firstArg=$1default_IFS=”$IFS” IFS=”,”allArg=($firstArg)IFS=”$defalut_IFS”for eachArg in ${allArg[@]}do echo $eachArg donenote: it is used to pass arg, arg, arg with $1 int...转载 2018-08-16 10:16:49 · 220 阅读 · 0 评论 -
xargs
echo `xargs<1.txt` | tr ’ ’ ‘,’ note: it is used to combine multiple lines into one line and replace space as “,”转载 2018-08-16 21:18:46 · 164 阅读 · 0 评论 -
tee linux echo
echo … | tee -a a bit is used to write into two files.转载 2018-08-20 15:20:21 · 200 阅读 · 0 评论