A command used to read space separated strings from stdin. Left-over words are assigned to the last variable
#!/bin/bash
read fName lName
echo $fName
echo $lNameA command used to read space separated strings from stdin. Left-over words are assigned to the last variable
#!/bin/bash
read fName lName
echo $fName
echo $lName