lunedì 18 luglio 2011

A good link for ksh shell scripting .....

Today i want share an interesting Ksh shell scripting link :


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.



Nessun commento:

Posta un commento

Goals 2025

 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...