Hi,
I’m trying to make an update script for my vpn password. I fetch a text file with 100 line. I can print all file and editing etc..But i could not fine how to get text from specific line . Password is in 59.line . Is is possible to get it ?
Hi,
I’m trying to make an update script for my vpn password. I fetch a text file with 100 line. I can print all file and editing etc..But i could not fine how to get text from specific line . Password is in 59.line . Is is possible to get it ?
you can depend on the word before the password and the length of the password if you know these information
for example we have this text
“your new password 123456”
considering you save the text in a variable called “a” , do this to get the password
:local b [:find $a “password”]
(the number of the charcters in the word "password is 9 with the space and the length of the password itself is 6)
:local pass [:pick $a ($b+9) ($b+15)]
now you get the password in the variable pass.