This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ps aux|head -1 | |
# Returns: USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND | |
ps axo user,pid,ppid,pcpu,pmem,vsz,rss,tname,stat,start,time,args|head -1 | |
# Returns: USER PID PPID %CPU %MEM VSZ RSS TTY STAT STARTED TIME COMMAND |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##1) exporter les fichiers au format CSV | |
##2) extraire les numéros d'identification avec : | |
tail -n +2 2017.csv | cut -d',' -f 1 > id_2017 | |
#tail -n +2 permet d'enlever la première ligne du fichier (souvent des titres de colonnes) | |
#cut -f1 permet de choisir la colonne où se trouve les identifiants | |
##3) vérifier (visualiser) que id_2017 contient bien les identifiants voulus | |
#cat id_2017 |