Bookmark Topic Watch Topic
  • New Topic

something similar to AWK?  RSS feed

 
jin Otanashi
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Report post to moderator
hi,
I'm trying to find a script or c++ or java code that does the similar thing that AWK does. for instance last | awk ' {print $1}' | sort -u  will only show the username (ignoring the rest of thing in the right side using last command in linux terminal) and that the thing i wants do but must harder or better than awk
 
Liutauras Vilda
Sheriff
Posts: 4917
334
BSD
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,

Probably would be beneficial if you'd tell your goal as a whole, so somebody could give you a more accurate advice.
 
fred rosenberger
lowercase baba
Bartender
Posts: 12563
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Report post to moderator
Liutauras Vilda wrote:Probably would be beneficial if you'd tell your goal as a whole, so somebody could give you a more accurate advice.

Indeed. If you had stated all the requirements in this post, we probably could have saved a lot of time and effort.

in fact, since there already is more of a discussion over there, I'm closing this thread.
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!