I have a pre-existing csh script on a Linux machine i'd like to update but i'm currently struggling to read two values from a text file which were previously hard coded in the script. The text file is called config.txt and has two lines with the following data:
Config=338893279
Profile=Profile1
In the csh script, i'm creating a $Config and $Profile variables and would like to assign the data from the text file to these variables.
I've been looking at examples using awk but i'm not sure it's the right tool for this as I have different types of data on each line.
I'd really appreciate it if someone please point me in the right direction on how you would get the data into the variables. TIA