From: Joel VanderWerf Date: 2008-10-27T11:43:55+09:00 Subject: Re: Join all text files in a folder, with a single line of Ruby code luisbebop wrote: >> ruby -pe'1' * > > Can you explain ? Sorry, but I didn't understand. If you run this in a shell, the * expands to all files. The -p switch means "for each line in the files on the command line, store the line into $_, and print $_. Usually, you want to use -e'some code' to operate on $_. In this case, the '1' is a no-op, so it just prints the line without changing it. HTH. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407