Skip to content
Advertisement

Tag: unix

Setting environment variables in Linux using Bash

In tcsh, I have the following script working: What is the equivalent to the tcsh setenv function in Bash? Is there a direct analog? The environment variables are for locating the executable. Answer export VAR=value will set VAR to value. Enclose it in single quotes if you want spaces, like export VAR=’my val’. If you want the variable to be

ELF file headers

A quick question about elf file headers, I can’t seem to find anything useful on how to add/change fields in the elf header. I’d like to be able to change the magic numbers and to add a build date to the header, and probably a few other things. As I understand it the linker creates the header information, but I

Combining values from different files into one CSV file

I have a couple of files containing a value in each line. EDIT : I figured out the answer to this question while in the midst of writing the post and didn’t realize I had posted it by mistake in its incomplete state. I was trying to do: and was getting a weird output. I later realized that was happening

Advertisement