How can I add an index to a csv file using awk? For example lets assume I have a file data.txt I would like to add another column, which is the index. Basically I would like an output of I was trying to use awk ‘{for (i=1; i<=NF; i++) print $i}’ but it does not seem to be working right.
Tag: indexing
How can I add a column of ascending numbers for each scaffold in my bed file
So I have a file like this, with each row representing a position in the scaffolds with some positions omitted. (There are actually a lot more rows for each scaffold): and ultimately i want to make 100kb sized windows for each scaffold separately (the last window on each scaffold would be less than 100kb).This is what it should look like:
linux: ranlib doesn’t seem to add any new information into an archive file?
The man page of ranlib says: DESCRIPTION ranlib generates an index to the contents of an archive and stores it in the archive. The index lists each symbol defined by a member of an archive that is a relocatable object file. Well, I tried to compile an archive file like below: I tried to compare the size of library file