Differences

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

Link to this comparison view

uso:laboratoare:new:05-cli:get-a-life [2019/10/28 19:14]
lucian.teodorescu [Filtre de text avansate]
uso:laboratoare:new:05-cli:get-a-life [2019/10/31 11:32] (current)
adrian.zatreanu
Line 8: Line 8:
  
 === sed === === sed ===
-Înainte să începeți acest tutorial, navigați către calea ''/​home/​student/​uso-lab/​05-cli/​support/​get-a-life/​tutorial-sed''​.+Înainte să începeți acest tutorial, navigați către calea ''/​home/​student/​uso-lab/​05-cli/​support/​get-a-life/​sed-tutorial''​.
  
 În acest director avem fișierul ''​songs.txt''​ cu următorul conținut: În acest director avem fișierul ''​songs.txt''​ cu următorul conținut:
  
 <code bash> <code bash>
-student@uso:​~/​.../​support/​get-a-life/​tutorial-sed$ cat songs.txt ​+student@uso:​~/​.../​support/​get-a-life/​sed-tutorial$ cat songs.txt ​
 1, Justin Timberlake, Title 545, Price $6.30 1, Justin Timberlake, Title 545, Price $6.30
 2, Taylor Swift, Title 723, Price $7.90 2, Taylor Swift, Title 723, Price $7.90
Line 27: Line 27:
  
 <code bash> <code bash>
-student@uso:​~/​.../​support/​get-a-life/​tutorial-sed$ sed '​s/​6\.30/​7.30/'​ songs.txt > songs2.txt +student@uso:​~/​.../​support/​get-a-life/​sed-tutorial$ sed '​s/​6\.30/​7.30/'​ songs.txt > songs2.txt 
-student@uso:​~/​.../​support/​get-a-life/​tutorial-sed$ cat songs2.txt ​+student@uso:​~/​.../​support/​get-a-life/​sed-tutorial$ cat songs2.txt ​
 1, Justin Timberlake, Title 545, Price $7.30 1, Justin Timberlake, Title 545, Price $7.30
 2, Taylor Swift, Title 723, Price $7.90 2, Taylor Swift, Title 723, Price $7.90
Line 45: Line 45:
  
 <code bash> <code bash>
-student@uso:​~/​.../​support/​get-a-life/​tutorial-sed$ cat /etc/passwd+student@uso:​~/​.../​support/​get-a-life/​sed-tutorial$ cat /etc/passwd
 root:​x:​0:​0:​root:/​root:/​bin/​bash root:​x:​0:​0:​root:/​root:/​bin/​bash
 daemon:​x:​1:​1:​daemon:/​usr/​sbin:/​usr/​sbin/​nologin daemon:​x:​1:​1:​daemon:/​usr/​sbin:/​usr/​sbin/​nologin
Line 55: Line 55:
  
 <code bash> <code bash>
-student@uso:​~/​.../​support/​get-a-life/​tutorial-sed$ awk -F: '​{print $1}' /etc/passwd+student@uso:​~/​.../​support/​get-a-life/​sed-tutorial$ awk -F: '​{print $1}' /etc/passwd
 root root
 daemon daemon
uso/laboratoare/new/05-cli/get-a-life.txt · Last modified: 2019/10/31 11:32 by adrian.zatreanu
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0