pr

可以用来将文本转换成适合打印的文件。这个工具的一个基本用途就是将较大的文件分割成多个页面,并为每个页面添加标题

语法

  pr [options] [file ...]

选项



  +beg_pag[:end-pag], 
  --pages=[beg_pag[:end-pag]
      在指定的首页/末页处开始/停止打印

  -num_cols
   --columns=num_cols
      输出指定的列数。如果指定了-a 选项,则从上到下列印。
            程序会自动在每一页均衡每列占用的行数。

  -a
  --across
      水平打印列,而不是垂直打印列

  -c
  --show-control-chars
      使用头标(^C)和八进制反斜杠标记
  -d
  --double-space
      加倍输出空白区域

  -e[tab-char[width]]
  --expand-tabs=[tab-char[width]]
      扩展输入的字符(制表符) 到制表符宽度(8)
  -f
  -F
  --form-feed
      使用出纸页页标代替新行作为页面间的分隔符
      (使用-F 选项时报头为3 行,不使用时为5 行)
  -h header
  --header=header
       在页眉中使用居中的指定字符代替文件名
       -h "" 输出一个空行,不要使用 -h""

  -i[out-tab-char[out-tab-width]]
  --output-tabs[=out-tab-char[out-tab-width]]
      使用指定字符(或制表符)代替空格不足到指定制表符宽度(默认8)

  -J
  --join-lines
       合并整个行,关闭-W 选项的行截断,不使用栏调整,使用
                --sep-string[=字符串] 设置分隔符

  -l lines
  --length=lines
      使用指定页长的行数(默认66)
      (默认文本行数为56,当启用-F 时为 63)

  -m
  --merge
    在同一行显示所有文件,每个文件占用一栏,分割行,但是当
    使用-J 时将行合并到完整长度

  -n[delimiter[digits]]
  --number-lines[=delimiter[digits]]
     显示行号,使用指定(默认5) 位数,后接分隔符(默认TAB)
    默认从输入文件的第一行开始计数

  -o width
  --indent=width
      将每行缩进(默认0)个空格,不影响-w 或-W 参数,
            缩进亮的值将被加入页面宽度

  -r
  --no-file-warnings
     文件无法打开时忽略警告

  -s[delimiter]
  --separator[=delimiter]
            由单个字符分隔各列,未附加-w 时默认为制表符,否则为空。
            另外除非-w 选项被指定,否则"-s[CHAR]"会屏蔽三个列相关
            的截行选项(-COLUMN|-a -COLUMN|-m)

  -S[string]
  --sep-string[=string]
            使用指定的字符串分栏,不使用-S 则使用默认的制表符
            TAB 作为分隔符,与-J 和空格一起使用(等于-S" ")对
            分栏选项无影响

  -t
  --omit-header
      忽略页眉和页脚

  -T
  --omit-pagination
      按照输入文件中的设置忽略页眉和页脚并除去所有分页记号

  -v
  --show-non-printing
     使用八进制反斜杠标记

  -w page_width
  --width=page_width
            为多栏页面输出将设置为指定的字符数(默认72),
            仅当-s[char] 选项不启用时有效(即保持默认值 72)。

  -W page_width
  --page-width=page_width
            总是将页宽设置为指定的(默认72)字符数,
            除非-J 选项启用总是截断行,此参数与-S 或-s 冲突
  file
     要打印的文件的路径名

  --help
      打印帮助信息,然后退出。

  --version
     打印版本信息然后退出。


实例

比如,pr可以将一个150行文本的文件转换成三个文本页,然后让用户进行打印。

在默认情况下,每个页面会包含66行文本,不过通过pr的-l参数,用户可以改变这一规则。
  
可以用来控制文本输出效果的参数很多,一般来说,每页的标题就是这个文档的文件名。当然,用户也可以自行定义标题,比如:

   $ pr -h "My report" file.txt

如果不使用上面的-h参数,打印的页面会用“file.txt”作为标题,而加上-h参数后,页面会使用该参数后指定的“My report”作为标题。
  
用户还可以使用pr命令将文本分列打印。这对于语句短小的文本来说比较有用,如果语句比较长,pr会在适当的位置进行换行。比如,要将file.txt文件按两列打印,可以使用以下命令:

  $ pr -2 -h "My report" file.txt

默认情况下,pr会为每个页面加入换行符(比如空行),不过用户也可以使用制表符来代替空行。可以下面这段命令使制表符来代替空行:

$ pr -f file.txt

如果用户只是想打印文件,而不想保存它,那么这个功能比较合适,但是如果用户同时也要保存文件,那么添加的制表符会让文件看起来比较乱。
  
需要记住的是,pr是一个标准的输出工具,可以直接输出到打印机,如果你希望将结果保存在文件中,则需要重定向它的输出,如下面这个例子:

$ pr file.txt >file.output

pr 命令实例:

linux命令:printf "\e[38;5;1m"; while true; do printf "\e[?5h A L E R T %s\n" "$(date)"; sleep 0.1; printf "\e[?5l"; read -r -s -n1 -t1 && printf "\e[39m" && break; done done break; && "\e[39m" printf && -t1 -n1 -s -r read "\e[?5l"; printf 0.1; sleep "$(date)"; %s\n" T R E L A "\e[?5h printf do true; while "\e[38;5;1m"; printf printf "\e[38;5;1m"; while true; do printf "\e[?5h A L E R T %s\n" "$(date)"; sleep 0.1; printf "\e[?5l"; read -r -s -n1 -t1 && printf "\e[39m" && break; donerootopen.com
linux命令:printf "\e[38;5;1m"; while true; do printf "\e[?5h A L E R T %s\n" "$(date)"; sleep 0.1; printf "\e[?5l"; read -r -s -n1 -t1 && printf "\e[39m" && break; done done break; && "\e[39m" printf && -t1 -n1 -s -r read "\e[?5l"; printf 0.1; sleep "$(date)"; %s\n" T R E L A "\e[?5h printf do true; while "\e[38;5;1m"; printf printf "\e[38;5;1m"; while true; do printf "\e[?5h A L E R T %s\n" "$(date)"; sleep 0.1; printf "\e[?5l"; read -r -s -n1 -t1 && printf "\e[39m" && break; donerootopen.com
2019-07-09 21:25:53

linux命令:printf "1-minute load average: %.1f%%\n" \ $(bc <<<"$(cut -d ' ' -f 1 /proc/loadavg) * 100") 100") * /proc/loadavg) 1 -f ' ' -d <<<"$(cut $(bc \ %.1f%%\n" average: load "1-minute printf printf "1-minute load average: %.1f%%\n" \ $(bc <<<"$(cut -d ' ' -f 1 /proc/loadavg) * 100")rootopen.com
linux命令:printf "1-minute load average: %.1f%%\n" \ $(bc <<<"$(cut -d ' ' -f 1 /proc/loadavg) * 100") 100") * /proc/loadavg) 1 -f ' ' -d <<<"$(cut $(bc \ %.1f%%\n" average: load "1-minute printf printf "1-minute load average: %.1f%%\n" \ $(bc <<<"$(cut -d ' ' -f 1 /proc/loadavg) * 100")rootopen.com
2019-07-09 21:05:11

linux命令:printf "\033c" "\033c" printf printf "\033c"rootopen.com
linux命令:printf "\033c" "\033c" printf printf "\033c"rootopen.com
2019-06-03 22:39:48

linux命令:printf "IPv6 is "; [ $(cat /proc/sys/net/ipv6/conf/all/disable_ipv6) -eq 0 ] && printf "enabled\n" || printf "disabled\n" "disabled\n" printf || "enabled\n" printf && ] 0 -eq /proc/sys/net/ipv6/conf/all/disable_ipv6) $(cat [ "; is "IPv6 printf printf "IPv6 is "; [ $(cat /proc/sys/net/ipv6/conf/all/disable_ipv6) -eq 0 ] && printf "enabled\n" || printf "disabled\n"rootopen.com
linux命令:printf "IPv6 is "; [ $(cat /proc/sys/net/ipv6/conf/all/disable_ipv6) -eq 0 ] && printf "enabled\n" || printf "disabled\n" "disabled\n" printf || "enabled\n" printf && ] 0 -eq /proc/sys/net/ipv6/conf/all/disable_ipv6) $(cat [ "; is "IPv6 printf printf "IPv6 is "; [ $(cat /proc/sys/net/ipv6/conf/all/disable_ipv6) -eq 0 ] && printf "enabled\n" || printf "disabled\n"rootopen.com
2019-02-12 21:04:26

linux命令:printf -v _hr "%*s" $(tput cols) && echo ${_hr// /${1--}} /${1--}} ${_hr// echo && cols) $(tput "%*s" _hr -v printf printf -v _hr "%*s" $(tput cols) && echo ${_hr// /${1--}}rootopen.com
linux命令:printf -v _hr "%*s" $(tput cols) && echo ${_hr// /${1--}} /${1--}} ${_hr// echo && cols) $(tput "%*s" _hr -v printf printf -v _hr "%*s" $(tput cols) && echo ${_hr// /${1--}}rootopen.com
2018-11-17 12:04:48

linux命令:printf "%`tput cols`s"|sed "s/ /_/g" /_/g" "s/ cols`s"|sed "%`tput printf printf "%`tput cols`s"|sed "s/ /_/g"rootopen.com
linux命令:printf "%`tput cols`s"|sed "s/ /_/g" /_/g" "s/ cols`s"|sed "%`tput printf printf "%`tput cols`s"|sed "s/ /_/g"rootopen.com
2018-11-17 12:03:07

linux命令:printenv SHELL SHELL printenv printenv SHELLrootopen.com
linux命令:printenv SHELL SHELL printenv printenv SHELLrootopen.com
2018-08-10 22:34:26

linux命令:printenv printenv printenvrootopen.com
linux命令:printenv printenv printenvrootopen.com
2018-08-10 22:26:39

linux命令:printf %g "$(bitcoin-cli estimatesmartfee 6 "ECONOMICAL" | jq .feerate*100000)";printf " sat/B estimated feerate for 6 confirmations as of $(date +%c)\nDivide by 100,000 to get btc/KB\n" btc/KB\n" get to 100,000 by +%c)\nDivide $(date of as confirmations 6 for feerate estimated sat/B " .feerate*100000)";printf jq | "ECONOMICAL" 6 estimatesmartfee "$(bitcoin-cli %g printf printf %g "$(bitcoin-cli estimatesmartfee 6 "ECONOMICAL" | jq .feerate*100000)";printf " sat/B estimated feerate for 6 confirmations as of $(date +%c)\nDivide by 100,000 to get btc/KB\n"rootopen.com
linux命令:printf %g "$(bitcoin-cli estimatesmartfee 6 "ECONOMICAL" | jq .feerate*100000)";printf " sat/B estimated feerate for 6 confirmations as of $(date +%c)\nDivide by 100,000 to get btc/KB\n" btc/KB\n" get to 100,000 by +%c)\nDivide $(date of as confirmations 6 for feerate estimated sat/B " .feerate*100000)";printf jq | "ECONOMICAL" 6 estimatesmartfee "$(bitcoin-cli %g printf printf %g "$(bitcoin-cli estimatesmartfee 6 "ECONOMICAL" | jq .feerate*100000)";printf " sat/B estimated feerate for 6 confirmations as of $(date +%c)\nDivide by 100,000 to get btc/KB\n"rootopen.com
2018-07-14 16:17:48

linux命令:prtvtoc /dev/rdsk/c0t0d0s2 | fmthard -s - /dev/rdsk/c0t1d0s2 /dev/rdsk/c0t1d0s2 - -s fmthard | /dev/rdsk/c0t0d0s2 prtvtoc prtvtoc /dev/rdsk/c0t0d0s2 | fmthard -s - /dev/rdsk/c0t1d0s2rootopen.com
linux命令:prtvtoc /dev/rdsk/c0t0d0s2 | fmthard -s - /dev/rdsk/c0t1d0s2 /dev/rdsk/c0t1d0s2 - -s fmthard | /dev/rdsk/c0t0d0s2 prtvtoc prtvtoc /dev/rdsk/c0t0d0s2 | fmthard -s - /dev/rdsk/c0t1d0s2rootopen.com
2018-02-26 14:06:48

linux命令:printf %d 0x`dd if=/dev/urandom bs=1 count=4 2>/dev/null | od -x | awk 'NR==1 {print $2$3}'` $2$3}'` {print 'NR==1 awk | -x od | 2>/dev/null count=4 bs=1 if=/dev/urandom 0x`dd %d printf printf %d 0x`dd if=/dev/urandom bs=1 count=4 2>/dev/null | od -x | awk 'NR==1 {print $2$3}'`rootopen.com
linux命令:printf %d 0x`dd if=/dev/urandom bs=1 count=4 2>/dev/null | od -x | awk 'NR==1 {print $2$3}'` $2$3}'` {print 'NR==1 awk | -x od | 2>/dev/null count=4 bs=1 if=/dev/urandom 0x`dd %d printf printf %d 0x`dd if=/dev/urandom bs=1 count=4 2>/dev/null | od -x | awk 'NR==1 {print $2$3}'`rootopen.com
2018-04-10 10:12:48

linux命令:pr -l 40 bitree.c > printcode; split -40 printcode -d page_ page_ -d printcode -40 split printcode; > bitree.c 40 -l pr pr -l 40 bitree.c > printcode; split -40 printcode -d page_rootopen.com
linux命令:pr -l 40 bitree.c > printcode; split -40 printcode -d page_ page_ -d printcode -40 split printcode; > bitree.c 40 -l pr pr -l 40 bitree.c > printcode; split -40 printcode -d page_rootopen.com
2018-01-31 09:10:48

linux命令:print -s "PATH='$PATH'" "PATH='$PATH'" -s print print -s "PATH='$PATH'"rootopen.com
linux命令:print -s "PATH='$PATH'" "PATH='$PATH'" -s print print -s "PATH='$PATH'"rootopen.com
2018-04-15 19:29:48

linux命令:print 'g/'delete this line'/delete\nwq' | ex file.txt file.txt ex | line'/delete\nwq' this 'g/'delete print print 'g/'delete this line'/delete\nwq' | ex file.txtrootopen.com
linux命令:print 'g/'delete this line'/delete\nwq' | ex file.txt file.txt ex | line'/delete\nwq' this 'g/'delete print print 'g/'delete this line'/delete\nwq' | ex file.txtrootopen.com
2018-04-25 11:04:48

linux命令:printf '\!:1\0\!:1\0\!:2' | mmencode | tr -d '\n' | sed 's/^/AUTH PLAIN /' /' PLAIN 's/^/AUTH sed | '\n' -d tr | mmencode | '\!:1\0\!:1\0\!:2' printf printf '\!:1\0\!:1\0\!:2' | mmencode | tr -d '\n' | sed 's/^/AUTH PLAIN /'rootopen.com
linux命令:printf '\!:1\0\!:1\0\!:2' | mmencode | tr -d '\n' | sed 's/^/AUTH PLAIN /' /' PLAIN 's/^/AUTH sed | '\n' -d tr | mmencode | '\!:1\0\!:1\0\!:2' printf printf '\!:1\0\!:1\0\!:2' | mmencode | tr -d '\n' | sed 's/^/AUTH PLAIN /'rootopen.com
2018-03-14 06:06:48

linux命令:printf "%'d\n" 1234567 1234567 "%'d\n" printf printf "%'d\n" 1234567rootopen.com
linux命令:printf "%'d\n" 1234567 1234567 "%'d\n" printf printf "%'d\n" 1234567rootopen.com
2018-05-21 06:06:48

linux命令:printf '%*s\n' 20 | tr ' ' '#' '#' ' ' tr | 20 '%*s\n' printf printf '%*s\n' 20 | tr ' ' '#'rootopen.com
linux命令:printf '%*s\n' 20 | tr ' ' '#' '#' ' ' tr | 20 '%*s\n' printf printf '%*s\n' 20 | tr ' ' '#'rootopen.com
2018-01-01 19:59:48

linux命令:print -l $path $path -l print print -l $pathrootopen.com
linux命令:print -l $path $path -l print print -l $pathrootopen.com
2018-04-11 03:03:48

linux命令:prev=0;next=1;echo $prev;while(true);do echo $next;sum=$(($prev+$next));prev=$next;next=$sum;sleep 1;done 1;done $next;sum=$(($prev+$next));prev=$next;next=$sum;sleep echo $prev;while(true);do prev=0;next=1;echo prev=0;next=1;echo $prev;while(true);do echo $next;sum=$(($prev+$next));prev=$next;next=$sum;sleep 1;donerootopen.com
linux命令:prev=0;next=1;echo $prev;while(true);do echo $next;sum=$(($prev+$next));prev=$next;next=$sum;sleep 1;done 1;done $next;sum=$(($prev+$next));prev=$next;next=$sum;sleep echo $prev;while(true);do prev=0;next=1;echo prev=0;next=1;echo $prev;while(true);do echo $next;sum=$(($prev+$next));prev=$next;next=$sum;sleep 1;donerootopen.com
2018-03-03 23:57:48

linux命令:printf "%02u " {3..20}; echo echo {3..20}; " "%02u printf printf "%02u " {3..20}; echorootopen.com
linux命令:printf "%02u " {3..20}; echo echo {3..20}; " "%02u printf printf "%02u " {3..20}; echorootopen.com
2018-04-29 05:10:48

linux命令:printf "%d\n" "'A" "'B" "'B" "'A" "%d\n" printf printf "%d\n" "'A" "'B"rootopen.com
linux命令:printf "%d\n" "'A" "'B" "'B" "'A" "%d\n" printf printf "%d\n" "'A" "'B"rootopen.com
2018-05-05 06:15:48

linux命令:printf "%s\n" .* .* "%s\n" printf printf "%s\n" .*rootopen.com
linux命令:printf "%s\n" .* .* "%s\n" printf printf "%s\n" .*rootopen.com
2018-05-11 04:08:48

linux命令:printf "%s\n" .* .* "%s\n" printf printf "%s\n" .*rootopen.com
linux命令:printf "%s\n" .* .* "%s\n" printf printf "%s\n" .*rootopen.com
2018-04-08 08:30:48

linux命令:printf "%s\n" ${PATH//:/\/* } } ${PATH//:/\/* "%s\n" printf printf "%s\n" ${PATH//:/\/* }rootopen.com
linux命令:printf "%s\n" ${PATH//:/\/* } } ${PATH//:/\/* "%s\n" printf printf "%s\n" ${PATH//:/\/* }rootopen.com
2018-05-03 23:53:48

linux命令:printf $(echo -n $1 | sed 's/\\/\\\\/g;s/\(%\)\([0-9a-fA-F][0-9a-fA-F]\)/\\x\2/g') 's/\\/\\\\/g;s/\(%\)\([0-9a-fA-F][0-9a-fA-F]\)/\\x\2/g') sed | $1 -n $(echo printf printf $(echo -n $1 | sed 's/\\/\\\\/g;s/\(%\)\([0-9a-fA-F][0-9a-fA-F]\)/\\x\2/g')rootopen.com
linux命令:printf $(echo -n $1 | sed 's/\\/\\\\/g;s/\(%\)\([0-9a-fA-F][0-9a-fA-F]\)/\\x\2/g') 's/\\/\\\\/g;s/\(%\)\([0-9a-fA-F][0-9a-fA-F]\)/\\x\2/g') sed | $1 -n $(echo printf printf $(echo -n $1 | sed 's/\\/\\\\/g;s/\(%\)\([0-9a-fA-F][0-9a-fA-F]\)/\\x\2/g')rootopen.com
2018-03-15 17:49:48

linux命令:process-getopt process-getopt process-getoptrootopen.com
linux命令:process-getopt process-getopt process-getoptrootopen.com
2018-03-29 14:03:48

linux命令:printf "%s\n" !(pattern) ## ksh, or bash with shopt -s extglob extglob -s shopt with bash or ksh, ## !(pattern) "%s\n" printf printf "%s\n" !(pattern) ## ksh, or bash with shopt -s extglobrootopen.com
linux命令:printf "%s\n" !(pattern) ## ksh, or bash with shopt -s extglob extglob -s shopt with bash or ksh, ## !(pattern) "%s\n" printf printf "%s\n" !(pattern) ## ksh, or bash with shopt -s extglobrootopen.com
2018-05-13 13:12:48

linux命令:printf "\e[8;70;180;t" "\e[8;70;180;t" printf printf "\e[8;70;180;t"rootopen.com
linux命令:printf "\e[8;70;180;t" "\e[8;70;180;t" printf printf "\e[8;70;180;t"rootopen.com
2018-03-08 21:21:48

linux命令:printf "%50s\n"|tr ' ' - - ' ' "%50s\n"|tr printf printf "%50s\n"|tr ' ' -rootopen.com
linux命令:printf "%50s\n"|tr ' ' - - ' ' "%50s\n"|tr printf printf "%50s\n"|tr ' ' -rootopen.com
2018-04-02 17:54:48

linux命令:printf "%d\n" \0x64 \0x64 "%d\n" printf printf "%d\n" \0x64rootopen.com
linux命令:printf "%d\n" \0x64 \0x64 "%d\n" printf printf "%d\n" \0x64rootopen.com
2018-02-08 06:03:48

linux命令:pronounce(){ wget -qO- $(wget -qO- "http://www.m-w.com/dictionary/$@" | grep 'return au' | sed -r "s|.*return au\('([^']*)', '([^'])[^']*'\).*|http://cougar.eb.com/soundc11/\2/\1|") | aplay -q; } } -q; aplay | '([^'])[^']*'\).*|http://cougar.eb.com/soundc11/\2/\1|") au\('([^']*)', "s|.*return -r sed | au' 'return grep | "http://www.m-w.com/dictionary/$@" -qO- $(wget -qO- wget pronounce(){ pronounce(){ wget -qO- $(wget -qO- "http://www.m-w.com/dictionary/$@" | grep 'return au' | sed -r "s|.*return au\('([^']*)', '([^'])[^']*'\).*|http://cougar.eb.com/soundc11/\2/\1|") | aplay -q; }rootopen.com
linux命令:pronounce(){ wget -qO- $(wget -qO- "http://www.m-w.com/dictionary/$@" | grep 'return au' | sed -r "s|.*return au\('([^']*)', '([^'])[^']*'\).*|http://cougar.eb.com/soundc11/\2/\1|") | aplay -q; } } -q; aplay | '([^'])[^']*'\).*|http://cougar.eb.com/soundc11/\2/\1|") au\('([^']*)', "s|.*return -r sed | au' 'return grep | "http://www.m-w.com/dictionary/$@" -qO- $(wget -qO- wget pronounce(){ pronounce(){ wget -qO- $(wget -qO- "http://www.m-w.com/dictionary/$@" | grep 'return au' | sed -r "s|.*return au\('([^']*)', '([^'])[^']*'\).*|http://cougar.eb.com/soundc11/\2/\1|") | aplay -q; }rootopen.com
2018-01-09 15:20:48

linux命令:pronounce(){ wget -qO- $(wget -qO- "http://dictionary.reference.com/browse/$@" | grep 'soundUrl' | head -n 1 | sed 's|.*soundUrl=\([^&]*\)&.*|\1|' | sed 's/%3A/:/g;s/%2F/\//g') | mpg123 -; } } -; mpg123 | 's/%3A/:/g;s/%2F/\//g') sed | 's|.*soundUrl=\([^&]*\)&.*|\1|' sed | 1 -n head | 'soundUrl' grep | "http://dictionary.reference.com/browse/$@" -qO- $(wget -qO- wget pronounce(){ pronounce(){ wget -qO- $(wget -qO- "http://dictionary.reference.com/browse/$@" | grep 'soundUrl' | head -n 1 | sed 's|.*soundUrl=\([^&]*\)&.*|\1|' | sed 's/%3A/:/g;s/%2F/\//g') | mpg123 -; }rootopen.com
linux命令:pronounce(){ wget -qO- $(wget -qO- "http://dictionary.reference.com/browse/$@" | grep 'soundUrl' | head -n 1 | sed 's|.*soundUrl=\([^&]*\)&.*|\1|' | sed 's/%3A/:/g;s/%2F/\//g') | mpg123 -; } } -; mpg123 | 's/%3A/:/g;s/%2F/\//g') sed | 's|.*soundUrl=\([^&]*\)&.*|\1|' sed | 1 -n head | 'soundUrl' grep | "http://dictionary.reference.com/browse/$@" -qO- $(wget -qO- wget pronounce(){ pronounce(){ wget -qO- $(wget -qO- "http://dictionary.reference.com/browse/$@" | grep 'soundUrl' | head -n 1 | sed 's|.*soundUrl=\([^&]*\)&.*|\1|' | sed 's/%3A/:/g;s/%2F/\//g') | mpg123 -; }rootopen.com
2018-05-21 23:35:48

linux命令:printf "%.50d" 0 | tr 0 - - 0 tr | 0 "%.50d" printf printf "%.50d" 0 | tr 0 -rootopen.com
linux命令:printf "%.50d" 0 | tr 0 - - 0 tr | 0 "%.50d" printf printf "%.50d" 0 | tr 0 -rootopen.com
2018-05-12 11:52:48

linux命令:printf ${PATH//:/\\n} ${PATH//:/\\n} printf printf ${PATH//:/\\n}rootopen.com
linux命令:printf ${PATH//:/\\n} ${PATH//:/\\n} printf printf ${PATH//:/\\n}rootopen.com
2018-05-04 16:55:48

linux命令:printf "%`tput cols`s"|tr ' ' '#' '#' ' ' cols`s"|tr "%`tput printf printf "%`tput cols`s"|tr ' ' '#'rootopen.com
linux命令:printf "%`tput cols`s"|tr ' ' '#' '#' ' ' cols`s"|tr "%`tput printf printf "%`tput cols`s"|tr ' ' '#'rootopen.com
2018-02-21 06:44:48

linux命令:prefix="10.0.0" && for i in `seq 25`; do ping -c 1 $prefix.$i &> /dev/null && echo "Answer from: $prefix.$i" ; done done ; $prefix.$i" from: "Answer echo && /dev/null &> $prefix.$i 1 -c ping do 25`; `seq in i for && prefix="10.0.0" prefix="10.0.0" && for i in `seq 25`; do ping -c 1 $prefix.$i &> /dev/null && echo "Answer from: $prefix.$i" ; donerootopen.com
linux命令:prefix="10.0.0" && for i in `seq 25`; do ping -c 1 $prefix.$i &> /dev/null && echo "Answer from: $prefix.$i" ; done done ; $prefix.$i" from: "Answer echo && /dev/null &> $prefix.$i 1 -c ping do 25`; `seq in i for && prefix="10.0.0" prefix="10.0.0" && for i in `seq 25`; do ping -c 1 $prefix.$i &> /dev/null && echo "Answer from: $prefix.$i" ; donerootopen.com
2018-02-10 11:04:48

linux命令:printf -v row "%${COLUMNS}s"; echo ${row// /#} /#} ${row// echo "%${COLUMNS}s"; row -v printf printf -v row "%${COLUMNS}s"; echo ${row// /#}rootopen.com
linux命令:printf -v row "%${COLUMNS}s"; echo ${row// /#} /#} ${row// echo "%${COLUMNS}s"; row -v printf printf -v row "%${COLUMNS}s"; echo ${row// /#}rootopen.com
2018-02-11 13:26:48

linux命令:printf "\n%25s%10sTOTAL\n" 'FILE TYPE' ' '; for ext in $(find . -iname \*.* | egrep -o '\.[^[:space:].]+$' | egrep -v '\.svn*' | sort -f | uniq -i); do count=$(find . -iname \*$ext | wc -l); printf "%25s%10s%d\n" $ext ' ' $count; done done $count; ' ' $ext "%25s%10s%d\n" printf -l); wc | \*$ext -iname . count=$(find do -i); uniq | -f sort | '\.svn*' -v egrep | '\.[^[:space:].]+$' -o egrep | \*.* -iname . $(find in ext for '; ' TYPE' 'FILE "\n%25s%10sTOTAL\n" printf printf "\n%25s%10sTOTAL\n" 'FILE TYPE' ' '; for ext in $(find . -iname \*.* | egrep -o '\.[^[:space:].]+$' | egrep -v '\.svn*' | sort -f | uniq -i); do count=$(find . -iname \*$ext | wc -l); printf "%25s%10s%d\n" $ext ' ' $count; donerootopen.com
linux命令:printf "\n%25s%10sTOTAL\n" 'FILE TYPE' ' '; for ext in $(find . -iname \*.* | egrep -o '\.[^[:space:].]+$' | egrep -v '\.svn*' | sort -f | uniq -i); do count=$(find . -iname \*$ext | wc -l); printf "%25s%10s%d\n" $ext ' ' $count; done done $count; ' ' $ext "%25s%10s%d\n" printf -l); wc | \*$ext -iname . count=$(find do -i); uniq | -f sort | '\.svn*' -v egrep | '\.[^[:space:].]+$' -o egrep | \*.* -iname . $(find in ext for '; ' TYPE' 'FILE "\n%25s%10sTOTAL\n" printf printf "\n%25s%10sTOTAL\n" 'FILE TYPE' ' '; for ext in $(find . -iname \*.* | egrep -o '\.[^[:space:].]+$' | egrep -v '\.svn*' | sort -f | uniq -i); do count=$(find . -iname \*$ext | wc -l); printf "%25s%10s%d\n" $ext ' ' $count; donerootopen.com
2018-02-08 03:32:48

linux命令:proceed_sudo () { sudor_command="`HISTTIMEFORMAT=\"\" history 1 | sed -r -e 's/^.*?sudor//' -e 's/\"/\\\"/g'`" ; sudo sh -c "$sudor_command"; }; alias sudor="proceed_sudo # " " # sudor="proceed_sudo alias }; "$sudor_command"; -c sh sudo ; 's/\"/\\\"/g'`" -e 's/^.*?sudor//' -e -r sed | 1 history sudor_command="`HISTTIMEFORMAT=\"\" { () proceed_sudo proceed_sudo () { sudor_command="`HISTTIMEFORMAT=\"\" history 1 | sed -r -e 's/^.*?sudor//' -e 's/\"/\\\"/g'`" ; sudo sh -c "$sudor_command"; }; alias sudor="proceed_sudo # "rootopen.com
linux命令:proceed_sudo () { sudor_command="`HISTTIMEFORMAT=\"\" history 1 | sed -r -e 's/^.*?sudor//' -e 's/\"/\\\"/g'`" ; sudo sh -c "$sudor_command"; }; alias sudor="proceed_sudo # " " # sudor="proceed_sudo alias }; "$sudor_command"; -c sh sudo ; 's/\"/\\\"/g'`" -e 's/^.*?sudor//' -e -r sed | 1 history sudor_command="`HISTTIMEFORMAT=\"\" { () proceed_sudo proceed_sudo () { sudor_command="`HISTTIMEFORMAT=\"\" history 1 | sed -r -e 's/^.*?sudor//' -e 's/\"/\\\"/g'`" ; sudo sh -c "$sudor_command"; }; alias sudor="proceed_sudo # "rootopen.com
2018-04-16 20:46:48

linux命令:printf $(( echo "obase=16;$(echo $$$(date +%s%N))"|bc; ip link show|sed -n '/eth/ {N; p}'|grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}'|head -c 17 )|tr -d [:space:][:punct:] |sed 's/[[:xdigit:]]\{2\}/\\x&/g')|sha1sum|head -c 32; echo echo 32; -c 's/[[:xdigit:]]\{2\}/\\x&/g')|sha1sum|head |sed [:space:][:punct:] -d )|tr 17 -c '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}'|head -E -o p}'|grep {N; '/eth/ -n show|sed link ip +%s%N))"|bc; $$$(date "obase=16;$(echo echo $(( printf printf $(( echo "obase=16;$(echo $$$(date +%s%N))"|bc; ip link show|sed -n '/eth/ {N; p}'|grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}'|head -c 17 )|tr -d [:space:][:punct:] |sed 's/[[:xdigit:]]\{2\}/\\x&/g')|sha1sum|head -c 32; echorootopen.com
linux命令:printf $(( echo "obase=16;$(echo $$$(date +%s%N))"|bc; ip link show|sed -n '/eth/ {N; p}'|grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}'|head -c 17 )|tr -d [:space:][:punct:] |sed 's/[[:xdigit:]]\{2\}/\\x&/g')|sha1sum|head -c 32; echo echo 32; -c 's/[[:xdigit:]]\{2\}/\\x&/g')|sha1sum|head |sed [:space:][:punct:] -d )|tr 17 -c '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}'|head -E -o p}'|grep {N; '/eth/ -n show|sed link ip +%s%N))"|bc; $$$(date "obase=16;$(echo echo $(( printf printf $(( echo "obase=16;$(echo $$$(date +%s%N))"|bc; ip link show|sed -n '/eth/ {N; p}'|grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}'|head -c 17 )|tr -d [:space:][:punct:] |sed 's/[[:xdigit:]]\{2\}/\\x&/g')|sha1sum|head -c 32; echorootopen.com
2018-01-29 23:51:48

linux命令:printf "$string" | md5sum md5sum | "$string" printf printf "$string" | md5sumrootopen.com
linux命令:printf "$string" | md5sum md5sum | "$string" printf printf "$string" | md5sumrootopen.com
2018-02-27 23:44:48

linux命令:println() {echo -n -e "\e[038;05;${2:-255}m";printf "%$(tput cols)s"|sed "s/ /${1:-=}/g"} /${1:-=}/g"} "s/ cols)s"|sed "%$(tput "\e[038;05;${2:-255}m";printf -e -n {echo println() println() {echo -n -e "\e[038;05;${2:-255}m";printf "%$(tput cols)s"|sed "s/ /${1:-=}/g"}rootopen.com
linux命令:println() {echo -n -e "\e[038;05;${2:-255}m";printf "%$(tput cols)s"|sed "s/ /${1:-=}/g"} /${1:-=}/g"} "s/ cols)s"|sed "%$(tput "\e[038;05;${2:-255}m";printf -e -n {echo println() println() {echo -n -e "\e[038;05;${2:-255}m";printf "%$(tput cols)s"|sed "s/ /${1:-=}/g"}rootopen.com
2018-02-02 09:19:48

linux命令:printf "g/^/m0\nw\nq"|ed $FILE $FILE "g/^/m0\nw\nq"|ed printf printf "g/^/m0\nw\nq"|ed $FILErootopen.com
linux命令:printf "g/^/m0\nw\nq"|ed $FILE $FILE "g/^/m0\nw\nq"|ed printf printf "g/^/m0\nw\nq"|ed $FILErootopen.com
2018-03-16 03:06:48

linux命令:printf "%02d:%02d\n" $(curl -s "http://search.twitter.com/search?from=zurvollenstunde&rpp=1" | grep -E '(Es ist jetzt|ago)' | sed 's/<[^>]*>//g;s/[^[:digit:]]//g' | xargs ) ) xargs | 's/<[^>]*>//g;s/[^[:digit:]]//g' sed | jetzt|ago)' ist '(Es -E grep | "http://search.twitter.com/search?from=zurvollenstunde&rpp=1" -s $(curl "%02d:%02d\n" printf printf "%02d:%02d\n" $(curl -s "http://search.twitter.com/search?from=zurvollenstunde&rpp=1" | grep -E '(Es ist jetzt|ago)' | sed 's/<[^>]*>//g;s/[^[:digit:]]//g' | xargs )rootopen.com
linux命令:printf "%02d:%02d\n" $(curl -s "http://search.twitter.com/search?from=zurvollenstunde&rpp=1" | grep -E '(Es ist jetzt|ago)' | sed 's/<[^>]*>//g;s/[^[:digit:]]//g' | xargs ) ) xargs | 's/<[^>]*>//g;s/[^[:digit:]]//g' sed | jetzt|ago)' ist '(Es -E grep | "http://search.twitter.com/search?from=zurvollenstunde&rpp=1" -s $(curl "%02d:%02d\n" printf printf "%02d:%02d\n" $(curl -s "http://search.twitter.com/search?from=zurvollenstunde&rpp=1" | grep -E '(Es ist jetzt|ago)' | sed 's/<[^>]*>//g;s/[^[:digit:]]//g' | xargs )rootopen.com
2018-02-24 15:31:48

linux命令:progr progr progrrootopen.com
linux命令:progr progr progrrootopen.com
2018-06-06 06:24:48

linux命令:prips prips pripsrootopen.com
linux命令:prips prips pripsrootopen.com
2018-05-01 15:22:48

linux命令:prep () { perl -nle 'print if '"$1"';' $2 } } $2 '"$1"';' if 'print -nle perl { () prep prep () { perl -nle 'print if '"$1"';' $2 }rootopen.com
linux命令:prep () { perl -nle 'print if '"$1"';' $2 } } $2 '"$1"';' if 'print -nle perl { () prep prep () { perl -nle 'print if '"$1"';' $2 }rootopen.com
2018-03-03 02:22:48

linux命令:printf "$PWD/%s\n" * * "$PWD/%s\n" printf printf "$PWD/%s\n" *rootopen.com
linux命令:printf "$PWD/%s\n" * * "$PWD/%s\n" printf printf "$PWD/%s\n" *rootopen.com
2018-01-17 09:05:48

linux命令:print "$(lsvg -Lo |xargs lsvg -L|grep "TOTAL PPs"|awk -F"(" '{print$2}'|sed -e "s/)//g" -e "s/megabytes/+/g"|xargs|sed -e "s/^/(/g" -e "s/+$/)\/1000/g"|bc ) GB" GB" ) "s/+$/)\/1000/g"|bc -e "s/^/(/g" -e "s/megabytes/+/g"|xargs|sed -e "s/)//g" -e '{print$2}'|sed -F"(" PPs"|awk "TOTAL -L|grep lsvg |xargs -Lo "$(lsvg print print "$(lsvg -Lo |xargs lsvg -L|grep "TOTAL PPs"|awk -F"(" '{print$2}'|sed -e "s/)//g" -e "s/megabytes/+/g"|xargs|sed -e "s/^/(/g" -e "s/+$/)\/1000/g"|bc ) GB"rootopen.com
linux命令:print "$(lsvg -Lo |xargs lsvg -L|grep "TOTAL PPs"|awk -F"(" '{print$2}'|sed -e "s/)//g" -e "s/megabytes/+/g"|xargs|sed -e "s/^/(/g" -e "s/+$/)\/1000/g"|bc ) GB" GB" ) "s/+$/)\/1000/g"|bc -e "s/^/(/g" -e "s/megabytes/+/g"|xargs|sed -e "s/)//g" -e '{print$2}'|sed -F"(" PPs"|awk "TOTAL -L|grep lsvg |xargs -Lo "$(lsvg print print "$(lsvg -Lo |xargs lsvg -L|grep "TOTAL PPs"|awk -F"(" '{print$2}'|sed -e "s/)//g" -e "s/megabytes/+/g"|xargs|sed -e "s/^/(/g" -e "s/+$/)\/1000/g"|bc ) GB"rootopen.com
2018-03-13 00:49:48

linux命令:printf "%$(tput cols)s\n"|tr ' ' '=' '=' ' ' cols)s\n"|tr "%$(tput printf printf "%$(tput cols)s\n"|tr ' ' '='rootopen.com
linux命令:printf "%$(tput cols)s\n"|tr ' ' '=' '=' ' ' cols)s\n"|tr "%$(tput printf printf "%$(tput cols)s\n"|tr ' ' '='rootopen.com
2018-01-13 00:57:48

Linux的Bash命令行(A-Z排序)