run script on selected file name

Hi, Could you please help me, I would like to pass the current file to a script. 

For example, currently I'm opening a file abc.txt, I would like to pass this file name (with and without relative path) to a shell script I prepared.

Thank and best regards, Steve

1 comment
Comment actions Permalink

You can use "parameters" setting in your run configuration to pass the text file as a parameter. That is, if we're talking about Python.

If your shell script is bash or something else, the field name can be different, but works the same way.


Please sign in to leave a comment.