The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
replace chars,
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
replace chars,
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
7
(
permalink
)
02-28-2007
c2b2
Registered User
Join Date: Dec 2006
Posts: 29
Try this if you have a very big file (say 100k records)
cut -c1-9 file > tempfile1
cut -c10-15 file | tr -cd "\n" "X" > tempfile2
cut -c15- file > tempfile3
paste -d"" tempfile1 tempfile2 tempfile3
c2b2
View Public Profile
Find all posts by c2b2