So I have this file, lets call it data.txt. It has multiple lines of text.
I want the script to find a line beginning with the variable $goto (previously defined in the script, 6 characters in length), and set the ENTIRE line as the variable $line . Each line in data.txt will begin with 6 unique characters.
Thanks,
Peter
I want the script to find a line beginning with the variable $goto (previously defined in the script, 6 characters in length), and set the ENTIRE line as the variable $line . Each line in data.txt will begin with 6 unique characters.
Thanks,
Peter