When using react native cli to convert the Hermes tracing profile to chrome tracing profile and pull it to local machine using the command
npx react-native profile-hermes [destinationDir]
Am getting the error like this. I am using Windows 10 and react native version 0.66
'grep' is not recognized as an internal or external command, operable program or batch file. error Error: Command failed: adb shell run-as com.madhusona ls cache/ -tp | grep -v /$ | grep -E '.cpuprofile' | head -1
I issued the command after login to adb shell, grep is working
D:\madhusona> adb shell
generic_x86:/ $ run-as com.madhusona
generic_x86:/data/user/0/com.madhusona $ ls cache/ -tp | grep -v /$ | grep -E '.cpuprofile' | head -1
sampling-profiler-trace767276177515590089.cpuprofile
generic_x86:/data/user/0/com.madhusona $