Thanks for the reply. I am not using the printf line i entered above. it does not work. I am trying to create five fields seperated by tabs, once this is done i need to enter info into each field seperately. Can this be done using awk?
Hi, i am writing a bash script and i am trying to redirect output to specific fields in a file. I cant seem to find any way of doing this. I have tried to create fields and add to a specific field using the following line
printf "%s\t%s\t%s\t%s\t%s\n" "" "" "$total" "" "" >> study.txt
which...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.