Formating Output: Difference between revisions
From mylearnings
Jump to navigationJump to search
Created page with "<pre> <command> | uniq </pre> ::- Prints only unique line." |
No edit summary |
||
Line 1: | Line 1: | ||
* Prints only unique line. | |||
<pre> | <pre> | ||
<command> | uniq | <command> | uniq | ||
</pre> | </pre> | ||
::- Prints | |||
* Sorts the lines. | |||
<pre> | |||
<command> | sort | |||
</pre> | |||
<pre> | |||
sudo docker images | awk -F ' ' 'NR==, NR==12 {print $3}' | |||
</pre> | |||
::- sudo docker images => Prints the current docker images in the system. | |||
::- -F ' ' => Field separation is set to space. |
Revision as of 09:53, 16 June 2025
- 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.