Skip to content

Tag: linux

Conditional append of strings on fields in a csv file

I am trying to convert a csv file like below with bash scripts. Headers and structures are always the same. Source csv file: Conditional values (will change depending on the requirements) Now I am trying to get the following result without the first row and values are now separated by spaces if each header ma…

`gulp` command doesn’t work as expected on Linux

I am trying to set up the needed environment for a project I am gonna work on. I am not able to run gulp command as expected (as it is told on the getting started page of Gulp). I am using Linux (PopOS) which is based on Ubuntu and Debian. So, I have tried to fix it in the local

How to print full trace file of trace_printk in ftrace?

I am using trace_printk() to print some numbers (they are around a million number). However when I check /sys/kernel/debug/tracing/trace … only a part of the full range is printed. Can anyone suggest me how to increase the buffer size or any way to print the full range via any option. *Note: I don&#8217…

recursively find directories without setgid set

In linux, how do you recursively pull up a list of all directories that do NOT have the setgid bit set? I know you can do to find all the directories that have it set, but it’s not obvious to me how to negate this. Or if another tool is more appropriate for this use case. I’ve got a rather