Skip to content

Tag: linux

splitting the file based on repeatation

experts i have a file as below where first column is repeated 0.0,5.0,10.Now i want to split the third column at repeatation of the first column row and want to arrange the data side by side as below: so that my final file will be so that my final file will be Answer Using GNU awk: Process each line and

ASP.NET Docker UserSecrets location

I have created an ASP.NET application that connects to microsoft sql database and needs a password for that. When running the application under Windows it takes the password from secrets.json file located in C:Users<user>AppDataRoamingMicrosoftUserSecrets<UserSecretsId> When running under Docker I…

clear a Pipe in C

I’m sending data from one process to another pipe and I want to clear the pipe after reading. Is there a function in C that can do this ? Answer Yes. It’s just the read function offered by the stdio library. You have to invoke it as many times as you need in order to be sure the pipe will