Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by thepom02

  1. thepom02

    Read and keep spaces

    Thanks for both replies, that fixed my problem.
  2. thepom02

    Read and keep spaces

    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...
  3. thepom02

    PCL Code & csplit

    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...
  4. thepom02

    PCL Code & csplit

    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...
  5. thepom02

    PCL Code & csplit

    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...
  6. thepom02

    PCL Code & csplit

    Would anyone know of a workaround for this
  7. thepom02

    PCL Code & csplit

    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...
  8. thepom02

    Win98 Install from scratch

    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...
  9. thepom02

    Installing CDROM support on HD

    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...

Part and Inventory Search

Back
Top