problem with printf in a shell script

Olivier Regnier oregnier at oregnier.net
Tue Jun 19 16:12:45 UTC 2007


Olivier Regnier a écrit :
> Hi everyone,
>
> I want to insert text in my file, rc.conf : update_motd="NO"
> I tried printf in my shell script with this command :
> printf "update_motd="\"NO"\"\" >> /etc/rc.conf
> then, that works well in console but not with my shell script
> I would like to insert a \n at the end :)
>
> Can you help me please ?
>
> Thank you :)
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe at freebsd.org"
Sorry :), i founded the solution :
printf 'update_motd="NO"'

Thank you :)


More information about the freebsd-questions mailing list