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

    Unix training

    The best way to learn Unix is to start using it. Try to find a copy of Linux or Solaris for your PC and install it. Mac has OSX which is built off a Unix operating system, so you could use that. You could also learn online or buy a book. One web page I found with a search on google was...
  2. sysanalyst25

    sed or vi search and replace of octal codes.

    Thanks for everyone's help. I did end up figuring out how to do it with sed once I found out it was 240 not 040 it was easy.
  3. sysanalyst25

    sed or vi search and replace of octal codes.

    If you cat my test file it looks like this. cat tmp.test 2135|0|TRUE|1|0|NEWCKT: |0|0|0 2135|1|TRUE|1|0|SLOT: |0|0|0 but in vi it looks like this. 2135|0|TRUE|1|0|NEWCKT:\040|0|0|0 2135|1|TRUE|1|0|SLOT:\040|0|0|0 I ran od on the test file and found that the octal representation is 240 and hex...
  4. sysanalyst25

    sed or vi search and replace of octal codes.

    I had already tried all of that. The problem is that vi doesn't recognize \040 as four individual characters, it is one character so the %s/\\040//g will not work. What it does is find all occurrences of the actual string 040 in the file and not the octal code. What Annihilannic said was the...
  5. sysanalyst25

    sed or vi search and replace of octal codes.

    A customer of mine exported a Sybase database in a .bcb format. In some of the .bcp files the character strings with trailing spaces had a \040 instead of a " ". Does anyone know how to search and replace an octal code? The following is an example. NOTE: The "\040" in vi...

Part and Inventory Search

Back
Top