Featured image of post Print Only Numbers From String Bash / Hi, i am having contents in a file like below, cat testfile rpool/swap rpool/swap14 rpool/swap2 rpool/swap3 i want i am writing a bash script on ubuntu11.10 i have some string having numbers and letter and want to add all the numbers together for example 1s2d23f i.

Print Only Numbers From String Bash / Hi, i am having contents in a file like below, cat testfile rpool/swap rpool/swap14 rpool/swap2 rpool/swap3 i want i am writing a bash script on ubuntu11.10 i have some string having numbers and letter and want to add all the numbers together for example 1s2d23f i.

This feature of shell is called parameter.