How to get wordlist file name and export the hits in a file named "wordlist-hits.txt"?

For example, my wordlist file name is “AUG-Yahoo.txt”

I want to export the hits from this combolist to a file named “AUG-Yahoo-hits.txt” without any modification instead of the “hits.txt” file by default.

Any help is appreciated

BLOCK:FileReadLines
  path = "AUG-Yahoo.txt"
  => VAR @fileReadLinesOutput
ENDBLOCK

BLOCK:Keycheck
  KEYCHAIN SUCCESS OR
    STRINGKEY @fileReadLinesOutput Contains "WHATEVER YOU CONSIDER A SUCCESS"
  KEYCHAIN FAIL OR
    STRINGKEY @fileReadLinesOutput Contains "WHATEVER YOU CONSIDER A FALSE"
ENDBLOCK

BLOCK:FileAppendLines
  path = "AUG-Yahoo-hits.txt"
  lines = $["<input.USER>:<input.PASS>"]
ENDBLOCK

thank you very much!