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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -