Copy some line in linux using command only

Closed
mukund - Jan 20, 2009 at 10:23 PM
jipicy Posts 40842 Registration date Wednesday August 27, 2003 Status Moderator Last seen August 10, 2020 - 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 40842 Registration date Wednesday August 27, 2003 Status Moderator Last seen August 10, 2020 17
Jan 21, 2009 at 01:07 PM
Hi,
grep 'pattern' file1 > file2
sed -n '/pattern/p' file1 > file2
;-))
0