Berkeley CSUA MOTD:Entry 33873
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/04/04 [General] UID:1000 Activity:popular
4/4     

2004/10/1-2 [Computer/SW/Unix] UID:33873 Activity:moderate
10/1    If i want to awk '{print $2+}' is there a way to do that without
        looping, or am i being TOO lazy?
        \_ perl
           \_ probably.  what are you trying to do in not-awk-speak?
           \- you can use this loop. there might be a range operator
              in some versions of awk, but not in generic awk. --psb
              awk '{for(i=2; i<=NF; i++) { printf " "$i } ; printf "\n" }'