>>>>> Artem Chuprina <[email protected]> writes:

 >> Есть такая добрая идиома чтобы echo-м писать от рута:

 >> echo something | sudo tee somefile

 > echo something | sudo tee somefile >/dev/null

$ echo something | sudo cp -- /dev/stdin somefile 

$ printf %s\\n "$varn" | sudo cp -- /dev/stdin somefile 

        (Поскольку $ echo "$varn", в общем случае, непереносимо.)

-- 
FSF associate member #7257      Coming soon: Software Freedom Day
http://mail.sf-day.org/lists/listinfo/ planning-ru (ru), sfd-discuss (en)


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Ответить