Hey guys, i have a string of information displayed in this way :
what i am tring to do is to read in input which is given by the user and change it to the correct string , which is $2.
I came up with a coding like this :
Code:
awk -F: -OFS: '{ $1 = "text" ; print}' database.txt > newdatabase.text
\
what it suppose to do is to read "$1" and replace it with the word text and then print the new rows out into the new database.text file.
did i get the syntax wrong? could somebody help me with this?