Skip to content

Tag: sed

Using SED to convert sensors command output to a loggable entry

Consider the following sensor command output: I’m trying to turn this into a log entry, like this, where the “temp1” values are placed next to the PCI adapters, and the board (it8721-isa-0290): I think sed is the correct tool for this, but if it’s not please let me know. I have already…

getting the output of “find” in a CSV

I’ve got a project where I’m trying to collect all the files on a linux system into a CSV to be dumped into a DB. my script has But the problem is that I have filenames %f and directory names %h with commas in them. So then I thought I could just put each item in quotes and that won’t