bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help:


From: Paul Jarc
Subject: Re: Help:
Date: Sat, 22 Sep 2001 16:56:02 -0400
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7

hhoxha <hhoxha@atnet.com.al> wrote:
> bash$cat /dev/null > ./*
> bash: : Ambiguous redirect
>
> How can this be done???

for i in ./*; do
  cat /dev/null > "$i"
done

Also note that the command "> file" is equivalent to
"cat /dev/null > file", but faster.


paul



reply via email to

[Prev in Thread] Current Thread [Next in Thread]