SysTutorials Forums QA How to delete or get the number in the tail from a string in shell script?

How to delete or get the number in the tail from a string in shell script (bash script)? Okay to call other tools.

For example, from “/dev/sda8”, I want to get “/dev/sda” and “8” separately.

Reply To: How to delete or get the number in the tail from a string in shell script?
Your information:





<a href="" title="" rel="" target=""> <blockquote cite=""> <code> <pre> <em> <strong> <del datetime=""> <ul> <ol start=""> <li> <img src="" border="" alt="" height="" width="">

Please share if you like this post: