Hi, I need to cut the last character of a string in a shell script.
For example, I do an
$ls *.c
and from the output produced, I need to cut out the last character. Obviously, the string sizes would be different so I can't use "cut".
How can this be done?
Thanks,
Sashi
For example, I do an
$ls *.c
and from the output produced, I need to cut out the last character. Obviously, the string sizes would be different so I can't use "cut".
How can this be done?
Thanks,
Sashi