Skip to content

Tag: linux

Keep zero after Hexdecimal conversion in bash

I’m writing a very simple script in bash: I want to print all numbers with minimum three digits as 000, 001, 002 .. until 099. With integer numbers it works good, but after obase = 16; $ i ‘| bcs number return with one or two digits. How can I solve it in the easiest way? Answer You might want

How to manually clean up conda in my home directory?

I use Anaconda in my computer to handle my python versions and environments. The location of the Anaconda installation (and consequently the default location for newly created environments) is /opt/anaconda3/. I have two custom environments that I have created – envA and envB. envA is present in /opt/an…

ffmpeg img to video = Could find no file with path

i try to convert img to mp4 with ffmpeg. i try to do it like this: and get an error: The jpg file-name format is: anyone can help, where is mistake?… Thanks! Answer To match all jpg files in /tmp/stream use: For more specificity use additional glob patterns. For example, if you only want images from 201…

How to change *** to textbf with sed

I export results from my analysis into a table in Latex. I would like to be able to change all coefficients that are significant to ***, **, * to bold face text textbf. This requires me to search with sed and change the stars to wrap around the coefficient. I want to change 0.047$^{***}$ to textbf{0.047} I&#8…