Jump to content

Recommended Posts

Guest edalb1979
Posted

Hi all

 

I have a data in a file. It is dummy information but will fill it with more detailed info after I get the example done.

 

In this file I have names with positions.

 

----File.txt----

James Web Developer

John Engineer

Phill Owner

 

When I do a

Code:

awk '{print $1,$2;}' file.txt

I get the correct results.

 

But what I want to do now is have a bash script that takes the information from awk

 

And echo the information to something like this.

 

James is a Web Developer

John is a Engineer

Phill is a Owner

 

I have tried numerous for loops but still I am not gotten the desired result.

 

Hope someone can point me into the right direction.

 

Regards

 

Continue reading...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...