I wanted to search for the text " Starting kernel" in a directory, so I did this:
[root@xilinx petalinux-v2013.10-final]# grep -r "Starting kernel" grep: warning: tools/packagemanager/lib/i686: recursive directory loop grep: Xilinx-ZC702-14.7/build/linux/rootfs/targetroot/etc/init.d/functions: No such file or directory grep: Xilinx-ZC702-14.7/build/linux/rootfs/targetroot/etc/rcS.d/S10flashdev: No such file or directory grep: Xilinx-ZC702-14.7/build/linux/rootfs/targetroot/mnt/net: No such file or directory grep: Xilinx-ZC702-14.7/build/linux/rootfs/targetroot/mnt/cf: No such file or directory Binary file Xilinx-ZC702-14.7/pre-built/linux/images/u-boot.elf matches Binary file Xilinx-ZC702-14.7/pre-built/linux/images/BOOT.BIN matches Binary file Xilinx-ZC702-14.7/pre-built/linux/images/output.bin matches
Why is it searching in files that don't exist? Why am I getting these "No such file or directory" messages?
Also, why is it searching binary files when I gave it ASCII characters? Can a binary file contain a string like mine?