Hi there, if i have some strings ie
test_324423
test_242332
test_767667
but I only want the number part (the bolded bit) how do I strip the leftmost 5 characters from the output so that i will have just
324423
242332
767667
any help would be greatly appreciated
Gary
[yogeshs@PS0814 htdocs]$ echo $str
test_324423
[yogeshs@PS0814 htdocs]$ echo $str | cut -d "_" -f 2
324423
[yogeshs@PS0814 htdocs]$
in bash
# v=test_324423
# echo ${v#*_}
324423
aigles
4
This solution is also valid in ksh
Jean-Pierre.
i see, thanks. I don't use ksh much.