4

grep the contents of a file with another file

view full story
linux-howto

http://www.linuxquestions.org – someone once told me that use can pass a file to grep and use that to search the contents of another file. if that is the case I'm not entirely sure why the following isn't working for me. Code: [root@LCENT01:~]#grep -i id_rsa.pub .ssh/authorized_keys [root@LCENT01:~]#cat id_rsa.pub >> .ssh/authorized_keys [root@LCENT01:~]#grep -i id_rsa.pub .ssh/authorized_keys thanks in advance! (HowTos)