Skip to content

Commit a2fd1a9

Browse files
author
lutaoact
committed
$'\t'
1 parent 7032d2f commit a2fd1a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sed_use.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ sed = pets.txt | sed 'N;s/\n/'$'\t''/' > line_num_pets.txt
3434
sed = my.txt | sed 'N; s/^/ /; s/\(.\{5,\}\)\n/\1 /' #对文件中的所有行编号(行号在左,文字左端对齐)。
3535
#sed = my.txt | sed -E 'N; s/(.*)\n/ \1 /' #貌似,我也可以这么写
3636
sed '/'"$name"'/,/};/d' back_slash.txt
37+
#$'\t' 在shell中输入tab键。或者先按Ctrl-V,然后再按Tab键

0 commit comments

Comments
 (0)