Taking output of grub2-mkpasswd-pbkdf2 and replacing text in a file

imnotadawg

New Member
Joined
Jan 23, 2022
Messages
1
Reaction score
0
Credits
13
I want to run grub2-mkpasswd-pbkdf2 and use the output from that command to replace specific text within an existing file. Is this possible? When appending to a file, the following text is written:

Enter password:
Reenter password:
PBKDF2 hash of your password is xxxxxxx

The problem is I only want the password xxxxxx text to replace a line in an existing file.
 

Members online


Top