[CentOS] for loop example
indunil75 at gmail.com
Wed Jun 8 03:41:07 UTC 2016
On Tue, Jun 7, 2016 at 5:33 PM, Kenneth Porter <shiva at sewingwitch.com>
> On 6/3/2016 10:41 PM, Indunil Jayasooriya wrote:
>> I need a OUTPUT like this
>> *firstname1 lastname1firstname2 lastname2*
> An obvious solution is to use Perl. I suggest searching Stackoverflow for
> a solution using that language.
yeah, you are right.
paste file_in.txt file_out.txt | while read if of; do
echo "-in $if -out $of"
[root at centos67 loop]# cat file1
[root at centos67 loop]# cat file2
[root at centos67 loop]# paste file1 file2 | while read if of; do echo "$
if at example.com $of at example.com"; done
firstname1 at example.com lastname1 at example.com
firstname2 at example.com lastname2 at example.com
thanks for your mail.
More information about the CentOS