[LUGOS] Echo escape sekvence
Franc Farazin
franc.farazin at hermes.si
Fri Aug 25 18:10:39 CEST 2006
Imam sledeco skripto:
===========================================================
#!/bin/sh
SVC="C:\Program Files (x86)\Installed
Packages\{790C06B4-844E-11D2-972B-080009EF8C2A}\ctx\data\model.mof"
echo "$SVC" | grep model
if [ $? -eq 0 ]
then
echo "model WAS found\n"
else
echo "model WAS NOT found but it's there!\n"
fi
echo "${SVC}"
===========================================================
A ve kateri kako resiti zgornji problem opisan v skripti? Problem
nastane, ko hocem grep-at po zgornjem file pathu toda echo odreze vse
od "\ctx" naprej, ker ne prebavi "\c" sekvence in seveda ne najde file
name-a. Igral sem se ze z vse mogocimi narekovaji pa mi ni ratalo. Pozna
kdo kaksno alternativo?
Tnx and lp,
Frank
More information about the lugos-list
mailing list