Formating Output

From mylearnings
Revision as of 09:53, 16 June 2025 by Pristal (talk | contribs)
Jump to navigationJump to search
  • Prints only unique line.
<command> | uniq
  • Sorts the lines.
<command> | sort
sudo docker images | awk -F ' ' 'NR==, NR==12 {print $3}'
- sudo docker images => Prints the current docker images in the system.
- -F ' ' => Field separation is set to space.