Converting a pipe delimited file to a tab delimited file should be extremely simple. And many times it is if you run under a pure UNIX environment. But if you are under Windows / DOS (using Cygwin) it can be a little tricky, but there is a simple solution.
To convert a pipe delimited file, simply type:
cat FILE | tr "|" '\t'
The trick here is that the first argument to the tr command has to use double-quotes. The standard single quotes will not work under DOS if the character you are converting is a pipe.
Nifty,
/T
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.