I consider myself pretty knowledgable in Linux…but I seem to be
learning new commands and techniques quite often. Today I learned
about *head* which essentially
gives you the first few lines of a file and prints it on the screen.
You can customize this experience by adding parameters, one of the
more useful ones is -n # which as you would expect returns a
specific number of lines from the beginning of your file. This is
going to prove particularly useful when comparing .out files that
contain compilation options. On Eureka for instance, I’ve found that
head -n145 something.out > textfile.txt
does a good job at capturing that.
Also had to make a quick animated gif today, easiest way I found was
to use image magick via:
convert -delay 50 SH03_%d.tiff[0-1] animated_gif.gif
and the result is:
Comments
comments powered by Disqus