Skip to content

Instantly share code, notes, and snippets.

@praetoriansentry
Created December 29, 2011 21:16
Show Gist options
  • Save praetoriansentry/1536236 to your computer and use it in GitHub Desktop.
Save praetoriansentry/1536236 to your computer and use it in GitHub Desktop.
Awk-like behavior with Perl
ps aux > test.txt;perl -p -w -e 'my @fields = split; $_ = $fields[1] . "\n"' test.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment