in reply to Get filename inside each file

system qq !echo 'Select * from stuff where thing = "@{[/(..)\./g]}" into selecti +on' > $_! for @ARGV;
And call the program with the files to modify as arguments.

Abigail