Re: remove the white space

2007-02-07 Thread Ashraf Al-Basti
Hi, when i try to use `tr -d \n` it always failed with this error odcall: entering group pre-proxy for request 0 radius_xlat: '/bin/bash /var/www/html/Test 11' Exec-Program: /bin/bash /var/www/html/Test 11 Exec-Program output: Exec-Program: returned: 0 modcall[pre-proxy]

Re: remove the white space

2007-02-06 Thread Bjørn Mork
Ashraf Al-Basti <[EMAIL PROTECTED]> writes: > Thanks, but if i want to read from file using cat how to do that? a) don't write the \n to the file in the first place, or b) pipe the output through `tr -d \n`, or c) write a simple script to read the file and preprocess the data as you like befo

Re: remove the white space

2007-02-06 Thread Ashraf Al-Basti
Thanks, but if i want to read from file using cat how to do that? Bjørn Mork wrote: Ashraf Al-Basti <[EMAIL PROTECTED]> writes: i have successfully replace the username from a file but it add "\n" or a white space for it, i'm using echo or cat command and the same result, here is the outp

Re: remove the white space

2007-02-06 Thread Bjørn Mork
Ashraf Al-Basti <[EMAIL PROTECTED]> writes: > i have successfully replace the username from a file but it add "\n" or > a white space for it, i'm using echo or cat command and the same result, > here is the output for the debug, > please advice how can i remove it. echo(1): -n d

remove the white space

2007-02-06 Thread Ashraf Al-Basti
Dear, i have successfully replace the username from a file but it add "\n" or a white space for it, i'm using echo or cat command and the same result, here is the output for the debug, please advice how can i remove it. modcall: entering group pre-proxy for request 1 radius_xlat: 'wanadoo'