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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. kartapacio

    Can´t remove some wierd character ^M

    Hi PHV, It worked perfectly !!! You make it look so easy, specially for newbies like me. Thanks!!
  2. kartapacio

    Can´t remove some wierd character ^M

    Hi everybody, I´m afraid this is something very stupid, but is driving me mad!! I cant find a way to remove a ^M mark. That mark is^M present at the end of the line like this one^M ^M ^M (this i get if the line is empty) I can see it only when I edit the file with vi (if i do a 'more' of the...
  3. kartapacio

    add-remove characters to a field

    It works just fine!!! Thanks a lot PHV!!!
  4. kartapacio

    add-remove characters to a field

    Hi, OK, i´ve got a file with several fields (its coming from an excel file) I have to integrate this with a cobol application that is expecting some file format to create its tables from such file. I can get the excel file, remove all the fields that i dont need, order them... The problem is...
  5. kartapacio

    add-remove characters to a field

    Hi PHV !!! ummmmmm im afraid i cant get this to work... im sure im doing something wrong. I dont know the meaning of "%32.32s", could you comment the line? (sorry for the abuse) Also, how will be the actual awk statement if i have for example 2 fields and one has to be 9 char long and the...
  6. kartapacio

    add-remove characters to a field

    Hi, I am trying to convert a file to a particular format. What i want is to get field $5 (for example) 32char long so, if its less than 32, add chars up to 32 and if its more than 32, cut them down... I think it will be something like : if (length($5) < 32) { while (length($5) <33 {...

Part and Inventory Search

Back
Top