The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Simple? Search replace
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Forum Rules
FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
Simple? Search replace
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
6
(
permalink
)
01-15-2004
Perderabo
Unix Daemon
Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,454
This is a sed script. It does not use a shell. You must get all 11 lines exactly as I have them.
Code:
#! /usr/bin/sed -nf # # s/^M\\$/^M\\/ H t x s/\n//g p s/.*// h
Call it combiner or something. Run it like:
combiner < oldfile > newfile
Perderabo
View Public Profile
Find all posts by Perderabo