Trying to write "<<<" in ksh <p>I am having trouble with the code below:</p> <pre><code>IFS=: read c1 c2 c3 c4 rest &lt;&lt;&lt; "$line" </code></pre> <p>Don't get me wrong this code works good but it doesn't seem to be used for ksh. I basically need to write the same code without the "&lt;&lt;&lt;". There is not much info on the "&lt;&lt;&lt;" online. If anybody has any ideas it would be much appreciated.</p> <p><strong>EDIT:</strong></p> <p>Ok code is as follows for the entire portion of programming:</p> <pre><code>m|M) #Create Modify Message clear echo " Modify Record " echo -en '\n' echo -en '\n' while true do echo "What is the last name of the person you would like to modify:" read last_name if line=$(grep -i "^${last_name}:" "$2") then oldIFS=$IFS IFS=: set -- $line IFS=$oldIFS c1=$1 c2=$2 c3=$3 c4=$4 shift; shift; shift; shift rest="$*" echo -e "Last Name: $1\nFirst Name: $2\nState: $4" while true do echo "What would you like to change the state to?:" read state if echo $state | egrep -q '^[A-Z]{2}$' then echo "State: $state" echo "This is a valid input" break else echo "Not a valid input:" fi done echo -e "Last Name: $c1\nFirst Name: $c2\nState: $state" echo "State value changed" break else echo "ERROR: $last_name is not in database" echo "Would you like to search again (y/n):" read modify_choice case $modify_choice in [Nn]) break;; esac fi done ;; </code></pre> <p>Ok so everything works except for the </p> <pre><code>echo -e "Last Name: $c1\nFirst Name: $c2\nState: $state" </code></pre> <p>It will just show:</p> <p>Last Name:</p> <p>First Name:</p> <p>State:</p> <p>So I can see it is not adding it to my echo correctly.</p> <p><strong>FINAL EDIT</strong></p> <p><strong><em>CODE:</em></strong></p> <pre><code>#Case statement for modifying an entry m|M) #Create Modify Message clear echo " Modify Record " echo -en '\n' echo -en '\n' while true do echo "What is the last name of the person you would like to modify:" read last_name if line=$(grep -i "^${last_name}:" "$2") then echo "$line" | while IFS=: read c1 c2 c3 c4 rest; do echo -e "Last Name: $c1\nFirst Name: $c2\nState: $c4" last=$c1 first=$c2 done while true do echo "What would you like to change the state to?:" read state if echo $state | egrep -q '^[A-Z]{2}$' then echo "State: $state" echo "This is a valid input" break else echo "Not a valid input:" fi done echo -e "Last Name: $last\nFirst Name: $first\nState: $state" echo "State value changed" break else echo "ERROR: $last_name is not in database" echo "Would you like to search again (y/n):" read modify_choice case $modify_choice in [Nn]) break;; esac fi done ;; </code></pre>