My problem is divide, in a shell script, file name from path.
Solutions was this :
file="/CLASS_09/CPP/INPUT/A8/pippo"
filename=${file##*/}
dirname=${file%/*}
echo $filename
echo $dirname
Stay tuned.
This blog was created to improve my English and share news, thoughts and opinions about the world around me. I use it also to fix some technical solutions for future use.
Hi all Today middle year check of my 2026's goals. 1. ENGLISH Improve listening comprehension (So and So) See at least one or two film...