|
From: | chth |
Subject: | Re: [Gnu-arch-users] Re: File naming conventions |
Date: | Thu, 21 Oct 2004 02:08:31 +0200 |
> There is the command tla escape (and tla escape --unescaped). But they > > only read a single command line argument. So you can't do: > > tla inventory --source | tla escape --unescaped | xargs chmod 644 > and you can't do > tla inventory --source | xargs tla escape --unescaped | xargs chmod > 644 Try: tla inventory --source |\ while read line; do chmod 644 "$(tla escape --unescaped "$line")"; done the stream-mode was not added to tla escape because it wont handle newlines in filenames and wont work with leading/trailing whitespaces. tla inventory --source --unescaped |\ while read line; do chmod 644 "$line"; done will work if you are sure that there are no newlines in filenames. Christian
[Prev in Thread] | Current Thread | [Next in Thread] |