Copy some line in linux using command only

Closed
mukund - Jan 20, 2009 at 10:23 PM
jipicy Posts 41342 Status Moderator - Jan 21, 2009 at 01:07 PM
Hello,
can u tell me how to copy a particular line from a file to another file using command
thank u
Related:

1 response

jipicy Posts 41342 Status Moderator 17
Jan 21, 2009 at 01:07 PM
Hi,
grep 'pattern' file1 > file2
sed -n '/pattern/p' file1 > file2
;-))