Robin Smidsrød
  • Home
  • About
  • Twitter
  • GitHub
  • Perl CPAN
  • Flickr
  • LinkedIn
  • Last.FM
  • Bacheloroppgave
  • NetworkBoot.org
Sign in Subscribe

text processing

A collection of 1 post
perl

Using perl instead of awk in my one-liner

I was filtering some output in the shell today, and I reached for my trusty awk '{ print $1 }' to get the first part of a line separated by whitespace. Then I started to think; why am I using awk for this when I know so much perl, and
Aug 29, 2011 1 min read
Page 1 of 1
Robin Smidsrød © 2025
  • Sign up
  • Contact
  • Only English
  • Bare norsk
  • RSS
Powered by Ghost