|
|
Question : Sybase isql
|
|
Hi everyone,
I have a little issue with using Sybase isql output file.
Everything works as described in isql reference except one thing. It adds one space character for each output line.
Can any one suggest how to remove it?
It is like _12345 instead of just 12345 (_ represent a space character here)
Thanks.
|
Answer : Sybase isql
|
|
It is the normal behavior of isql to append space at the beginning of the output line $ isql S Password: 1> select "isql" isql 2> go isql ---- isql
(1 row affected)
From my understanding, space is default column separator that gets added to the beginning of each output line.
You can remove it by two methods, First: isql S -s Password: 1> select "isql" isql 2> go isql ---- isql
(1 row affected)
Second: Get the isql output file and delete the leading whitespace from the file using sed operator. sed 's/^[ \t]*//' file_name >> desired_output_file
I would suggest the second method as the first method would remove the column separator.
|
|
|
|
|