grep Acct: Facs_Data.txt |cut -d":" -f2 |cut -d" " -f1
it returns the right half of the search i.e. Acct:1234 returns 1234. and I would then use this 1234 to create a file named 1234_2017.txtSo my question is: How can I achieve the same thing in Perl from opening a file that has more than one entry of Acct: ?
In reply to How do I use grep in a script by Flintlock
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |