1

Filtering the Xth element in a row?

view story
linux-howto

http://unix.stackexchange.com – For example, I want to get only the 3rd element in each row when I call: xinput --list --short|grep "slave pointer" I get the output: ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ SynPS/2 Synaptics TouchPad id=11 [slave pointer (2)] ⎜ ↳ MCE IR Keyboard/Mouse (ite-cir) id=12 [slave pointer (2)] ⎜ ↳ Logitech Unifying Device. Wireless PID:101a id=14 [slave pointer (2)] I would like to get only the names like "SynPS/2 Synaptics TouchPad", ... I saw somewhere a solution with awk and print someho (HowTos)