1、
root@DESKTOP-1N42TVH:/home/test# ls outcome.map root@DESKTOP-1N42TVH:/home/test# cat outcome.map ## 测试数据 1s64199.1055910 1OAR19_64675012.1085204 1OAR19_64715327.10122948 1OAR19_64803054.10203750 1DU281551_498.10312707 1s18939.10356863 root@DESKTOP-1N42TVH:/home/test# sed 's/./ &/g' outcome.map ##将每一个字符替换为空格+字符 1 s 6 4 1 9 9 . 1 0 5 5 9 1 0 1 O A R 1 9 _ 6 4 6 7 5 0 1 2 . 1 0 8 5 2 0 4 1 O A R 1 9 _ 6 4 7 1 5 3 2 7 . 1 0 1 2 2 9 4 8 1 O A R 1 9 _ 6 4 8 0 3 0 5 4 . 1 0 2 0 3 7 5 0 1 D U 2 8 1 5 5 1 _ 4 9 8 . 1 0 3 1 2 7 0 7 1 s 1 8 9 3 9 . 1 0 3 5 6 8 6 3 root@DESKTOP-1N42TVH:/home/test# sed 's/./ &/g' outcome.map | sed 's/^.//' ## 删除文本开头的字符 1 s 6 4 1 9 9 . 1 0 5 5 9 1 0 1 O A R 1 9 _ 6 4 6 7 5 0 1 2 . 1 0 8 5 2 0 4 1 O A R 1 9 _ 6 4 7 1 5 3 2 7 . 1 0 1 2 2 9 4 8 1 O A R 1 9 _ 6 4 8 0 3 0 5 4 . 1 0 2 0 3 7 5 0 1 D U 2 8 1 5 5 1 _ 4 9 8 . 1 0 3 1 2 7 0 7 1 s 1 8 9 3 9 . 1 0 3 5 6 8 6 3