I'll suppose the key is the first word on the line,
The regex can be adjusted for other circumstances.$ perl -pi -e's/^TOM\b.*\n//' userlist.txt $
After Compline,
Zaxo
In reply to Re: Remove string from file
by Zaxo
in thread Remove string from file
by bran4ever
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |