User Tools

Site Tools


so:pipes_filters:cut-en

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

so:pipes_filters:cut-en [2025/04/07 20:43]
jkonczak Translation page created
so:pipes_filters:cut-en [2025/04/07 20:48] (current)
jkonczak
Line 1: Line 1:
-=====cut-en ====== +<​html><​pre style="​line-height:​1">​ 
 +<span style="​font-weight:​bold;​color:#​00ff00;">​user&#​64;​host</​span><​span style="​font-weight:​bold;​color:#​5c5cff;">​ ~ $</​span>​ cat ps 
 +  PID TTY          TIME CMD 
 +29417 pts/​27 ​  ​00:​00:​00 bash 
 +29422 pts/​27 ​  ​00:​00:​00 ps 
 +<span style="​font-weight:​bold;​color:#​00ff00;">​user&#​64;​host</​span><​span style="​font-weight:​bold;​color:#​5c5cff;">​ ~ $</​span> ​cut -c 7- ps            <span style="​color:​gray">#​ outputs characters starting from the seventh</​span>​ 
 +TTY          TIME CMD 
 +pts/​27 ​  ​00:​00:​00 bash 
 +pts/​27 ​  ​00:​00:​00 ps 
 +<span style="​font-weight:​bold;​color:#​00ff00;">​user&#​64;​host</​span><​span style="​font-weight:​bold;​color:#​5c5cff;">​ ~ $</​span>​ cut -b 4,25 ps          <span style="​color:​gray">#​ fourth and twenty-fifth byte</​span>​ 
 +IC 
 +1b 
 +2p 
 +<span style="​font-weight:​bold;​color:#​00ff00;">​user&#​64;​host</​span><​span style="​font-weight:​bold;​color:#​5c5cff;">​ ~ $</​span>​ cut -f 2 -d &apos; &apos; ps      <span style="​color:​gray">#​ the first line of the ps file starts with two spaces, hence the &​apos;​empty&​apos;​ f</​span>​
  
 +pts/27
 +pts/​27</​pre></​html>​
so/pipes_filters/cut-en.1744051394.txt.gz · Last modified: 2025/04/07 20:43 by jkonczak