23,120
社区成员
发帖
与我相关
我的任务
分享
[User:root Time:05:20:51 Path:/home/liangdong/shell]$ ./test.sh
1
11
111
1111
[User:root Time:05:20:51 Path:/home/liangdong/shell]$ cat test.sh
#!/bin/bash
echo -e "a\nb\nc\n" | awk 'BEGIN{str="";}{str=str"1";print str; }'