Re: DOS newlines (CR/LF) to Unix format [message #171742 is a reply to message #171733] |
Thu, 20 January 2011 03:20 |
Bjarne Jensen
Messages: 9 Registered: January 2011
Karma:
|
Junior Member |
|
|
On 2011-01-19 12:25, "Álvaro G. Vicario" wrote:
<zipped>
>
> Now, injecting unescaped random stuff in a command line can be very
> dangerous. You should always use escapeshellarg()!
Point taken.
> Last but not least... I assume you are using PHP code to launch bash
> code because you don't have a full script in either language to do the
> full task, am I correct? Your approach is weird and probably
> inefficient. Google for "xargs awk", you'll probably find a 100% bash
> example.
The bash version works fine but I need to create something that can be
used by someone even less competent in computers/scripting than I am as
I'm not allways present.
|
|
|