pdb to fasta conversion with Bash

Here is a simple pdb to fasta format conversion tool. The purpose was to extract residue sequence from atomic coordinates (ATOM lines).

Note that the sequence extracted this way corresponds to residues which are really present in the 3D structure. This could be different from the sequence obtained from the …

more ...

Find + xargs = powerful combo

With the Unix commands find and xargs you have the ability to find any files on your hard drive while being able to manipulate them individually. Here are few examples:

find ./ -type f -name "*.php"  | xargs -r rename "s/php/html/"

Find all files (-type f) with extension .php -name …

more ...

Reduce PDF size

Here is a bash script that reduces the size of a PDF file provided as an argument.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#! /bin/bash
# PP 29/08 …
more ...