Linux & toolsAvailable in French and English
Bash: convert a string to an integer
Bash can’t convert a float to an integer, but printf handles it just fine: here is a small shell function that does the job.
Shell commands and scripts on Linux and Mac OS X (3 posts).
1 post
Linux & toolsAvailable in French and English
Bash can’t convert a float to an integer, but printf handles it just fine: here is a small shell function that does the job.
2 posts
Linux & tools2 commentsAvailable in French
Pas besoin d’appli graphique : la commande sips de Mac OS X convertit une icône .icns en PNG aux dimensions voulues, en une seule ligne.
Linux & tools3 commentsAvailable in French
Avec Leopard, niutil n’est plus là pour lire le nom réel d’un utilisateur. Voici la commande dscl qui le remplace, à glisser dans vos scripts shell.