:ribbon:

bash: insert file into another file

10 Jun 2017

I’m trying to insert (or prepend) a file into another file using sed -i however this approach breaks hardlinks. How do I solve this?

Continue Reading →

:ribbon:

bash: column based join/merge of multiple files

08 Jun 2017

Given the following input file.

Continue Reading →

:ribbon:

bash: rename image files based on type

04 Jun 2017

Given a directory of image files that all have the .jpg extension regardless of their image type we need to rename their extension based on the “actual” image type using bash.

Continue Reading →