Answer the question
In order to leave comments, you need to log in
How to remove wrap in bash?
There is bash code
#!/bin/bash
#set -x
port=11100
while read -r line;
do
IFS=";"
set -- $line
sshpass -p "$3" ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null "$2"@"$1" -C -N -D 95.24.25.15:$port -f ;netstat -nltp | grep $port | awk '{print $4}' ;echo -e $1; port=$(($port+1));
done < ${1}
echo -e $1
puts a line break before, how to make it so that there is no line break?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question