Tuesday, October 26, 2010

Write list of files which contains some pharse

find .|xargs grep SAP >list

. -> current directory , sometimes you can use * for searching all files from the current location
xargs -> It is used to build and execute command lines from standard input, dont understand - just taking the find command output and passing to grep command

> -> he greater-thans (>) in commands like these redirect the program’s output somewhere

No comments:

Post a Comment