On Fri, 2008-12-19 at 09:01 +0000, Mark Rogers wrote:
Based on the above (and very little bash script skills!) I tried: #!/bin/bash # Convert XLS files to CSV... files=$(echo "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | sed -e 's/^ ?(.*)(.xls) ?/"\1\2" > "\1.csv"/i') xls2csv $files
.. which I wanted to take /path/to/foo.xls and run xls2csv /path/to/foo.xls > /path/to/bar.csv
It doesn't work (no surprised on a first test like this) but I have absolutely no idea how to debug it? Where would errors go?
To debug it the best way initially would be to run it from the shell with NAUTILUS_SCRIPT_SELECTED_FILE_PATHS hard set to a test file at the begining of the script.