Je me sers de dos2unix pour remplacer le caractère ^M que l’on retrouve partout dans un fichier texte édité sous Windows.
Il peut arriver parfois que ça ne fonctionne pas, j’utilise alors ce workaround:
# remove ^M character, dos2unix is propably not installed so workaround tr -d $'\r' < ${FILE} > seq_tmp mv seq_tmp ${FILE} rm seq_tmp Si ça ne fonctionne toujours pas, sed à la rescousse:
sed -i 's/'"$(printf '\015')"'/\n/g' vilain_fichier....
Un client m’a demandé combien ça coûtait de faire du carrelage
1500 €
Si cher pour ce boulot ?
Combien pensez vous que ça vous coûterait ?
800 € maximum…
-Pour 800 € je vous invite à le faire vous-même.
-Mais…. je ne sais pas le faire.
-Pour 800 € je vous apprendrais à le faire. Donc, vous économisez 700 €,
-il accepte
-Mais pour commencer : vous avez besoin d’outils ....
I assume that users A and B are using the same Linux machine(s) where you are the administrator.
The following command will prevent the user with uid 1234 from sending packets on the interface eth0:
# iptables -t mangle -A OUTPUT -o eth0 -m owner --uid-owner 1234 -j DROP Thanks to this StackExchange thread....
Today a quick how-to about repackaging of a Debian package with broken dependencies.
The context I use a package automatically built from a custom repo who is broken. It uses a mandatory broken dependency libssl1.0.0. This outdated package has been retired from Debian Stretch repositories.
As this custom repository don’t provide package sources, I had to dig into this debian package to edit the control file, where package dependencies are defined....
Today a quick command line to know installed packages from a specific repository. If you want to know all installed packages on your machine from download.virtualbox.org:
for package in $(dpkg -l | awk '{print $2}'); do apt-cache madison $package | grep download.virtualbox.org; done Simple and easy ! Replace download.virtualbox.org with the repository you are searching for....