Article 5DFFD Prepend a string to every line of an input file... with a twist

Prepend a string to every line of an input file... with a twist

by
halyung
from LinuxQuestions.org on (#5DFFD)
While this script works perfectly well, with a static prepend string, I want to use the contents of another file called prefix.txt to be used in it's place.

awk '{print "prefix" $0}' file

becomes

awk '{print ($cat prefix.txt) $0}' file

Is there a way to get this to work?latest?d=yIl2AUoC8zA latest?i=GdI-zrk7sqE:XqKskyWMjHM:F7zBnMy latest?i=GdI-zrk7sqE:XqKskyWMjHM:V_sGLiP latest?d=qj6IDK7rITs latest?i=GdI-zrk7sqE:XqKskyWMjHM:gIN9vFwGdI-zrk7sqE
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments