Below you will find pages that utilize the taxonomy term “bash”
Blog
Convert XLS/XLSX to CSV in Bash
In most of the modern Linux distributions, Libre Office is available and it can be used to convert XLS or XLSX file(s) to CSV file(s) in bash.
For XLS file(s):
1for i in *.xls; do libreoffice --headless --convert-to csv "$i"; done For XLSX file(s):
1for i in *.xlsx; do libreoffice --headless --convert-to csv "$i"; done You may get following warning but it still works fine:
1javaldx: Could not find a Java Runtime Environment!
Blog
Running Script on Cluster (StarCluster)
Start a new cluster with the configuration file you modified:
starcluster start cluster_name Send the script to the running cluster:
starcluster put cluster_name myscr.csh /home/myscr.csh Run it using source:
starcluster sshmaster cluster_name "source /home/myscr.csh >& /home/myscr.log"
Blog
How To Make A File or Script Executable in Ubuntu
Start terminal CTRL + Alt + T can be used (or just go to Dash Home and type Terminal):
Run this command below:
sudo chmod +x /path/to/your/file Source