expand

将制表符转换为空格,将每个给定文件的内容写入标准输出,并将制表符转换为适当的空格数。如果没有给出文件,或者文件为“ - ”,则写入标准输入

语法

  expand [options]... [file]...

选项

-TAB1[,TAB2]...
-t TAB1[,TAB2]...
--tabs=TAB1[,TAB2]...
   如果只给出一个制表位,则将制表符TAB1空格分开(默认为8)。
   否则,将选项卡设置为列TAB1,TAB2,...(从0开始编 
   号),并替换使用单个空格给出的最后一个tabstop之外的任何选项卡。
   如果使用`-t'或`--tabs'选项指定tabstops,它们可 
   以用空格和逗号分隔

-i
–initial
仅将每行上的初始制表符(在所有非空格或非制表符之前的制表符)转换为空格

expand 命令实例:

linux命令:expanded_script=$(eval "echo \"$(cat ${sed_script_file})\"") && sed -e "${expanded_script}" your_input_file your_input_file "${expanded_script}" -e sed && ${sed_script_file})\"") \"$(cat "echo expanded_script=$(eval expanded_script=$(eval "echo \"$(cat ${sed_script_file})\"") && sed -e "${expanded_script}" your_input_filerootopen.com
linux命令:expanded_script=$(eval "echo \"$(cat ${sed_script_file})\"") && sed -e "${expanded_script}" your_input_file your_input_file "${expanded_script}" -e sed && ${sed_script_file})\"") \"$(cat "echo expanded_script=$(eval expanded_script=$(eval "echo \"$(cat ${sed_script_file})\"") && sed -e "${expanded_script}" your_input_filerootopen.com
2017-12-29 14:17:48

linux命令:expand -t 2 <filename> <filename> 2 -t expand expand -t 2 <filename>rootopen.com
linux命令:expand -t 2 <filename> <filename> 2 -t expand expand -t 2 <filename>rootopen.com
2018-06-09 13:37:48

linux命令:expandurl() { wget -S $1 2>&1 | grep ^Location; } } ^Location; grep | 2>&1 $1 -S wget { expandurl() expandurl() { wget -S $1 2>&1 | grep ^Location; }rootopen.com
linux命令:expandurl() { wget -S $1 2>&1 | grep ^Location; } } ^Location; grep | 2>&1 $1 -S wget { expandurl() expandurl() { wget -S $1 2>&1 | grep ^Location; }rootopen.com
2018-04-06 00:05:48

linux命令:expandurl() { curl -sIL $1 | grep ^Location; } } ^Location; grep | $1 -sIL curl { expandurl() expandurl() { curl -sIL $1 | grep ^Location; }rootopen.com
linux命令:expandurl() { curl -sIL $1 | grep ^Location; } } ^Location; grep | $1 -sIL curl { expandurl() expandurl() { curl -sIL $1 | grep ^Location; }rootopen.com
2018-01-16 00:43:48

linux命令:expandurl() { curl -sIL $1 2>&1 | awk '/^Location/ {print $2}' | tail -n1; } } -n1; tail | $2}' {print '/^Location/ awk | 2>&1 $1 -sIL curl { expandurl() expandurl() { curl -sIL $1 2>&1 | awk '/^Location/ {print $2}' | tail -n1; }rootopen.com
linux命令:expandurl() { curl -sIL $1 2>&1 | awk '/^Location/ {print $2}' | tail -n1; } } -n1; tail | $2}' {print '/^Location/ awk | 2>&1 $1 -sIL curl { expandurl() expandurl() { curl -sIL $1 2>&1 | awk '/^Location/ {print $2}' | tail -n1; }rootopen.com
2018-03-01 05:03:48

linux命令:expandurl() { curl -s "http://api.longurl.org/v2/expand?url=${1}&format=php" | awk -F '"' '{print $4}' } } $4}' '{print '"' -F awk | "http://api.longurl.org/v2/expand?url=${1}&format=php" -s curl { expandurl() expandurl() { curl -s "http://api.longurl.org/v2/expand?url=${1}&format=php" | awk -F '"' '{print $4}' }rootopen.com
linux命令:expandurl() { curl -s "http://api.longurl.org/v2/expand?url=${1}&format=php" | awk -F '"' '{print $4}' } } $4}' '{print '"' -F awk | "http://api.longurl.org/v2/expand?url=${1}&format=php" -s curl { expandurl() expandurl() { curl -s "http://api.longurl.org/v2/expand?url=${1}&format=php" | awk -F '"' '{print $4}' }rootopen.com
2018-05-19 18:51:48

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