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

    Trimming Tabs from data fields

    I currently use this function to trim spaces from a string function trim(str){ nsub1=sub("^[ ]*", "", str) nsub2=sub("[ ]*$", "", str) return str } I tried to use nsub1=sub("^[ ]*", "\t", str) nsub3=sub("[...
  2. arcticpuppy

    I currently use this function to tr

    I currently use this function to trim spaces from a string function trim(str){ nsub1=sub("^[ ]*", "", str) nsub2=sub("[ ]*$", "", str) return str } I tried to use nsub1=sub("^[ ]*", "\t", str) nsub3=sub("[ ]*$&quot...
  3. arcticpuppy

    removing padding spaces from a DB

    Thanks that did it.....much appreciated
  4. arcticpuppy

    removing padding spaces from a DB

    Example code as requested AB Wrestling promoters Jonesy (Abbott) and Max (Costello) trail their runaway fighter to Algiers where they're tricked into joining the French Foreign Legion. They have to cope with a sadistic sergeant and a sexy spy (Medina)...
  5. arcticpuppy

    removing padding spaces from a DB

    I am reading a database that has triling blanks in the data so when I do a length($0) and use this to define the substr($0,4,length($0)- 4) I want to use. The data contains text and thus removing spaces from the end using a gsub may be tricky This shows up bigtime when I try to append two...
  6. arcticpuppy

    Converting HTML special characters to ASCII

    sorry about the last post of data I did not preview the post unfortunatgly the web nature of the forum is interpreting the ascii text to web so note this is what I meant to send but ignore the spaces in the first field (I have spaced the data so that the HTML nature of the forum will not...
  7. arcticpuppy

    Converting HTML special characters to ASCII

    great news about gawk but what do you call ...gsub would be tedious and require every sprecial character to be translated (i.e. a gsub for every accent, &, ! etc...) sample data Data Resulting Data ---- --------------- Amélie = Amelie (with...
  8. arcticpuppy

    Converting HTML special characters to ASCII

    I am parsing a html file that has special characters for &, !, etc and I would like to convert these automatically for ascii output(tab delimeted file) any hints ?

Part and Inventory Search

Back
Top