Tag Archives: bash

Remove extension in a bash script

Imagine a bunch of files with extension fastq.dsrc, the following script will decompress the files by looping over the N files. One issue was to remove the extension in the script. See below the usage of // for filename in … Continue reading

Posted in Linux | Tagged | Leave a comment

Set the default printer under linux

If you want to set the default printer, you can use the command line interface and type: export PRINTER=printer-nameexport PRINTER=printer-name If you want to set the default printer permanently, and if your shell is bash (most common by default), you … Continue reading

Posted in Linux | Tagged , | Leave a comment

scp does not work: wrong bashrc

When I tried to use scp to copy a file on a distant machine: scp -v filename username@xxx.xxx.xxx:/home/usernamescp -v filename username@xxx.xxx.xxx:/home/username it looked as if the SCP command works but the file is not copied. The interactive option (-v) does … Continue reading

Posted in Linux | Tagged , , | 3 Comments