After I create printer queues in AIX, I have to append a filter file location within that printers custom file. within lets say test_queue.txt I need to find the row that starts with :699 and then I need to append on the end the string /usr/local/bin/k_portrait.sh.
Now I've gotten the sed command to work outside my script at the comand-line level but I can't make it work within the script. I've also made the path to the filter file include backslashes to the k_portrait.sh file. So variables are involved.
I could really use some help with a sed command string - or if awk would be better I'd go that way also. Thanks in advance for any help I recieve.