I want to grep the adb logcat & write the output to a text file. If I just do
./adb logcat > std.txt
it writes the entire log to the text file & If I do
./adb logcat | grep ABC
it prints all lines containing ABC to my terminal. But now I wish to search for ABC & write only these lines to a text file.
./adb logcat | grep ABC > std.txt
doesn't work. Plz help.