Hello,
Please find an ugly code. bouuu.
It shall work onto RAM only to update from the last 10 strings from $URLTO. I shall read first : "$HOME/.fvwmoscfg/fvwmclipboardmplayerplayurl10.ini"
The code works but it is very ugly. How could it be made elegant please?
Thank you
THETENLASTILES=`cat "$HOME/.fvwmoscfg/fvwmclipboardmplayerplayurl10.ini"`
echo "${URLTO}" > "$HOME/.fvwmoscfg/fvwmclipboardmplayerplayurl10.ini"
echo "$THETENLASTILES" >> "$HOME/.fvwmoscfg/fvwmclipboardmplayerplayurl10.ini"
THETENLASTILES=`cat "$HOME/.fvwmoscfg/fvwmclipboardmplayerplayurl10.ini" | head -n 10`
echo "$THETENLASTILES" > "$HOME/.fvwmoscfg/fvwmclipboardmplayerplayurl10.ini"