Tag Archives: bash

Remove extension in a bash script

Tweet 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 //

Posted in Linux | Tagged | Leave a comment

Set the default printer under linux

Tweet If you want to set the default printer, you can use the command line interface and type:

If you want to set the default printer permanently, and if your shell is bash (most common by default), you should … Continue reading

Posted in Linux | Tagged , | Leave a comment

scp does not work: wrong bashrc

Tweet When I tried to use scp to copy a file on a distant machine:

it looked as if the SCP command works but the file is not copied. The interactive option (-v) does not provide any hints. The … Continue reading

Posted in Linux | Tagged , , | 3 Comments