I have a script that sequentially read thru a file in a while do loop. However leading spaces from the records are removed by the read, is there anyway to keep these spaces.
example
while read -r line
do
PROCESS goes here
done < $PrintFile
If my line is " Here is some text", $line...
Thanks for the input to date but awk has the same results as the csplit. It will not recognise the lines with the PCL codes.
For example if I do awk '{print $0}' input.file
then anything following the PCL codes (including the codes) are not printed.
I need to play with either grep or sed as...
How would I accomplish this with sed or awk. I can see how I could match the first line by the unique ID but then how would I make the script print the rest of the letter.
Basically I need to do the following:
Identify the first line of letter (this will contain the id)
Print this line to...
Basically what I have is a large file containing the letters. On the first line of each letter (along with some other information) is a unique id. What I want the script to do is to be able to accept as input a list of id's and copy the full letter for those ids to a new file to be later...
I have a file which contains PCL codes as well as other text records. Its basically a file with formatted letters. I have written a script which takes some id's as input and strips off the letters for those ids using csplit within a loop. The script works fine except the lines with PCL codes are...
I have just installed a new Western Digital Harddrive 80GB on my Sony Vaio computer. Drive is partitioned 40/20/20. I now need to install operating system. When I boot using Win98 Startupdisk I can access the CDROM but the 3 partitions are not found hance when I try to run setup it fails.
When...
I have just installed a new Western Digital Harddrive 80GB on my Sony Vaio computer. Drive is partitioned 40/20/20. I now need to install operating system. When I boot using Win98 Startupdisk I can access the CDROM but the 3 partitions are not found hance when I try to run setup it fails.
When...
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.