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