in reply to very basic, just beginning

No one has recommended the append mode of open. Here is the perl one-liner:

perl -e 'for (@ARGV){open FILE, ">>$_";print FILE "\n";close FILE;} ' +<filenames>

Later

Replies are listed 'Best First'.
Re: Re: very basic, just beginning
by jmanning2k (Pilgrim) on Aug 27, 2003 at 18:08 UTC
    Your code doesn't do what is asked. That one liner will append a newline to the end of the file.