Remove object name from output header entry with bash and/or sed -
i have output file looks this:
aaa1:var1 aaa1:var2 bbb2:var3 ccc3:var4 ...
i need find way find prior colon each entry in header row. example:
var1 var2 var3 var4 ...
i want remove objx: each header entry, object names aren't uniformly named (nor variable names) can rip out "obj*:" or similar.
the thing separated spaces (not including leading space first entry) , object separated variable colon.
thanks.
read -a headers < file echo "${headers[@]/*:/}"
Comments
Post a Comment