How to "Rostopic echo" only the pose in the 'odom' topic
I'm a beginner in ROS, and as such I'm struggling with an apparently simple question. I'm using Turtlbot in Gazebo and would like to print in a text file the pose of the robot during its path. What I do now is to "echo" the /odom topic and there I can see the pose. However, it prints a lot of other information I do not need. How can I somehow filter it, to only print the pose of the robot (x, y, z) during the robot's path.
Thank you in advance for considering this.