Hello. I'm trying to write a script to take a 5 field file, do some math, and extend it to 9 fields. Problem is, the script keeps wrapping it to two lines, even tho 9 fields, tab separated (even comma separated) doesn't fill the screen. Even if it did, I'm eventually copying it to an excel sheet anyways, and it really NEEDS to be one line. I've tried things like paste with no luck. It HAS to be possible to do one line, b/c it's way too inconvenient otherwise. Here's an example:
file = adder.sh
PHP Code:
# this wraps to two lines :(
echo "$f1\t$f2\t$f3\t$f4\t$f5\t$cost\$time\t$rank\t$analysis" > file.txt
# this also forcefully wraps to two lines :(
echo "$f1\t$f2\t$f3\t$f4\t$f5" > file1
echo "$cost\$time\t$rank\t$analysis" > file2
paste file1 file2 > file.txt
# this wraps to two lines
echo "$f1\t$f2\t$f3\t$f4\t$f5\t$cost\$time\t$rank\t$analysis" > file.txt
# this also forcefully wraps to two lines
echo "$f1\t$f2\t$f3\t$f4\t$f5" > file1
echo "$cost\$time\t$rank\t$analysis" > file2
paste file1 file2 > file.txt
any help would be much appreciated