Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

linefeed / Breakline with Bash script (Readline)

#!/bin/bash

DISPLAY=localhost:0.0
export DISPLAY

#!/bin/bash
let i=1
messageString=""
skypeUser=$1
for var in "$@"
        do
                if [ "$i" -gt "1" ];then
# Added var+messagestring but after 1st string of character
                        messageString="$messageString $var"
                fi
                let i=$i+1
# Add $var into $messagestring to make final Message
        done
echo "Sending Message : $messageString to User : $skypeUser" >> skypelog.txt

python /path/to/script.pl "$skypeUser" "`printf "$messageString"`"
# printf "$messageString"` Helps any incoming line break n