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, first day of 2025 my goals for this year : 1. ENGLISH Improve listening comprehension See at least one or two films in Engli...