Re: why is this result?
Aurelio Jargas <[email protected]>
| Newsgroups | gmane.editors.sed.user |
|---|---|
| Message-ID | <CABMdp-EebJ0TvbhPdmf5BsaEXH4kBcmxTWAR3TUuKpLs1Z8QzQ@mail.gmail.com> |
sed by default already print every line to the output. When you use the 'p' command, you're telling sed to print each line again. On Thursday, March 14, 2013, ishare wrote: > > I have a file named by "1", its content is > > xyz > 123 > dfd > xyzdfdf > > > when I typed : sed 'p' 1 . > it print out : > xyz > xyz > 123 > 123 > dfd > dfd > xyzdfdf > xyzdfdf > > Obviously ,every line has been duplicated once ,why is this result? > > > > thanks! > > > ------------------------------------ > > -- > Yahoo! Groups Links > > > > -- Aurelio | www.aurelio.net | @oreio [Non-text portions of this message have been removed]