lol
public text v1 · immutablewhile [ $Q1 = "0" ] ; do
echo ""
echo "The username which will be used to run blackbox on?"
if [ $NOCOLOR = "0" ] ; then
echo -ne "\033[34m[\033[36m$USER\033[34m] \033[36m-> \033[37m$c"
else
echo -n "[$TEST] -> $c"
fi
read cc; cc=`echo -n "$cc" | sed -e '/^\n/d'`
if [ $cc ] ; then
Q1="$cc"
echo -n "$cc"
else
Q1="$USER"
echo -n "$USER"
fi
COLOR "31"
done
result:
The username which will be used to run blackbox on?
[knor] ->
knor
(i want that \n gone.)