[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] Removing all user accounts with no deposits



Hi Martin,

My bad! I was using some obfuscated Perl there.? In this case the 
Diamond operator:

https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fperlmaven.com%2Fthe-diamond-operator&data=01%7C01%7C%7C818bccefc40140d6494c08d7f6850568%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=5n2My2xExFpDNwnd5WRGphmDhMF3AcEcUd2zQwLThN8%3D&reserved=0

The shift removes the repo ID so the Diamond operator only tries to open 
the file named in the second argument.? The Diamond operator reads a 
line at a time, that is why I said the user IDs need to be new line 
separated in this file.

Regards

David Newman


On 12/05/2020 15:35, Martin Hawksey wrote:
> Hi?David,
>
> Thanks for getting back to me, the script looks ideal. Sorry for a 
> follow-up perl question but I can see in the shared script how:
> my $repoid = shift @ARGV;
> would get the repository name and remove ARCHIVE_NAMEfrom @ARGVbut where in the script does it open the file of new line separated 
> user IDs?
> Many thanks
> Martin
>


-- 
This email has been checked for viruses by AVG.
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.avg.com%2F&data=01%7C01%7C%7C818bccefc40140d6494c08d7f6850568%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=9MBItnoek%2FAXdDwY2Gk6b3RJvpRK0iVaMA7A9429EGE%3D&reserved=0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20200512/4d1f8ada/attachment.html