4 ms·
echo "1 2 3 4" | tr -s " " | cut -f1 -d " " tr is nice!
by Kototama 16y ago
echo "1 2 3 4" | tr -s " " | cut -f1 -d " "
tr is nice!
- cma 16y agoDoesn't work, gets caught on leading spaces: echo ' 1 2 3 4' | tr -s " " | cut -f1 -d " " > echo ' 1 2 3 4' | awk '{print $1}' >1