Hello, I want to point out that I am
very new to the world of bash script programming. Okay, so I made a couple very simple scripts to compile C++/Allegro/Java programs for me like this one:
Code:
#!/bin/bash
c++ *_src.cpp -o Out.cpp
I put this in my ~/.gnome2/nautilus-scripts folder so that I could right-click a _src file and compile it. HOWEVER this (obviously) only works if I have a single _src file in a directory. I need to be able to select a file, right-click, and compile it; having an output of the same file name and that one only. I do not know how to get a selected file name through script though, so I just used an asterisk. Thanks for any help in advance!