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 a simple ai post (generated by ChatGPT) about best AI Video mobile Apps : 🎬 The Best Free AI Video Mobile Apps You Should Try...
Nessun commento:
Posta un commento