Sponsored Content
Full Discussion: + instead of ;
Top Forums Shell Programming and Scripting + instead of ; Post 54165 by Perderabo on Wednesday 4th of August 2004 08:18:59 PM
Old 08-04-2004
The performance gain is similar to the xargs trick.

In addition to saving one more process, this + notation has another advantage over xargs. xargs reads file names from standard input, one name per line. This means that xargs will break if a file name has an embedded newline character. It's not possible to construct a filename that will break the + notation.

The + sign is part of the posix standard. But I think it's a recent addition.
 
All times are GMT -4. The time now is 07:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy