This article describes the issue of traceroute and ping commands not supporting the Junos CLI pipe ( | ) feature.
The grep command can be used with traceroute or ping via the router shell. The user can logon to the shell by using the start shell command.