Pages tagged with awk

I'm still in the process of tagging pages that were migrated from the old site, so for now you're best off using the search engine rather than relying on the tags.

  • Text manipulation - cut, awk and sed - Tokenize strings using cut If you know the exact delimiter (e.g. a tab) you can use cut. The format is as follows: cut -d[delimiter] -f[field_number] [filename] Where [delimiter] is the delimiter, [field_number] is the number of the field we want ...
  • Get total memory usage of a program - You can use ps to list details of the processes running on your system and awk to filter for a particular program and total the values. In this case we’ll total the RSS, which is awk’s 6th token hence the $6 in the command. If you wanted to total the ...

This website is a personal resource. Nothing here is guaranteed correct or complete, so use at your own risk and try not to delete the Internet. -Stephan

Site Info

Privacy policy

Go to top