"myfolder\lyc\something-lyc-mic.txt"
"any_number_offolder_with_lyc\lyc-myfolder\lyc\something-lyc-mic.txt"
"any_number_offolder_with_lyc\lyc-myfolder\lyc\something-yyy-mic.txt"
echo "any_number_offolder_with_lyc\lyc-myfolder\lyc\something-yyy-mic.txt" | sed 's/\(.*\)\\/\1\\/;s/lyc/yyy/g'
sed -r 's/lyc([^\]*)$/yyy\1/'
<b>$ echo 'myfolder\lyc\something-lyc-mic.txt' | sed -r 's/lyc([^\]*)$/yyy\1/'</b>
myfolder\lyc\something-yyy-mic.txt
<b>$ echo 'any_number_offolder_with_lyc\lyc-myfolder\lyc\something-lyc-mic.txt' | sed -r 's/lyc([^\]*)$/yyy\1/'</b>
any_number_offolder_with_lyc\lyc-myfolder\lyc\something-yyy-mic.txt