如何将所有数字带入shell中

Sri*_*m P 1 unix bash sh

输入文件:

new12
abc34
none44
bore93
this67
Run Code Online (Sandbox Code Playgroud)

输出应该是:

12new
34abc
44none
93bore
67this
Run Code Online (Sandbox Code Playgroud)

如何在Unix shell脚本中使用命令?

Avi*_*Raj 5

你可以使用sed.

sed 's/^\([^[:digit:]]\+\)\([[:digit:]]\+\)$/\2\1/' file
Run Code Online (Sandbox Code Playgroud)