This entry is a quick tip about Bash shell. Many times I want to remove (rm), copy (cp), move (mv) or do other things (cat, head, etc.) to all files in a directory, except to a particular one or ones. If there are few files in a directory, it is not a big problem. But…
Tag: Linux
awk – Filtrer un fichier à partir d’un autre fichier
C’était l’une des premières choses que j’ai apprises sur awk. Tout a commencé quand j’ai dû gérer un fichier de 700k SNP. Dans une étape du processus, j’ai du filtrer ce fichier en me basant sur une liste d’identifications. Je me souviens que j’ai essayé de le faire avec R et il n’a pas fonctionné…
awk – Filtering a file from another file
This was one of the first tips that I learned about awk. All started when I had to manage a 700k SNP file. In one step of the process I had to filter this file based on a list of individuals. I remember that I tried to do it with R but it did not…
Comment comparer des dossiers?
Il m’est arrivé de devoir copier de très gros dossiers, presque 1To au total. Avant de supprimer l’original, je voulais m’assurer que toute leur structure était bien copiée. Pour ce genre de travail, nous avons de bons outils visuels comme Meld ou des solutions payantes comme Beyond Compare (le préférée d’un ami, mais il utilise…
How to compare directories?
A few days ago I had to copy a very heavy directory, of about 1TB in total. Before delete the original ones I wanted to compare if all the structure of them were well copied. For this kind of job we have good visual tools, like Meld or payed solutions like Beyond Compare (a friend’s…