Advertisement
Xioth

Bash - TD2 - cutFich.sh

Jan 27th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.17 KB | None | 0 0
  1. # Extraire première colonne
  2. cat fich.txt | cut -d ':' -f1
  3.  
  4. # Placer la première colonne en dernière position
  5. cat fich.txt | tr ':' ' ' | awk '{print $2,$3,$1}' | tr ' ' ':'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement