Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Linux Terminal 3 Entrées sorties et redirections
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 1 column, instead of 6. in line 1.
$ cat javascript_biarritz_toulouse.csv
Agathe,Bazin,Toulouse,France,2017,JavaScript
Maurice,Munoz,Toulouse,France,2017,JavaScript
Michèle,Traore,Toulouse,France,2017,JavaScript
Aurélie,Becker,Toulouse,France,2018,JavaScript
Timothée,Henry,Toulouse,France,2018,JavaScript
Théodore,Gerard,Toulouse,France,2018,JavaScript
Maryse,Allain,Toulouse,France,2018,JavaScript
Philippe,Paris,Toulouse,France,2018,JavaScript
Henri,Guilbert,Toulouse,France,2018,JavaScript
Olivier,Dufour,Toulouse,France,2018,JavaScript
Alexandre,"Da Silva",Toulouse,France,2019,JavaScript
Mathilde,Descamps,Toulouse,France,2019,JavaScript
Céline,Fabre,Toulouse,France,2019,JavaScript
Raymond,Bouvet,Toulouse,France,2019,JavaScript
Danielle,Lecomte,Toulouse,France,2019,JavaScript
Noël,Noel,Toulouse,France,2019,JavaScript
Danielle,Perrin,Toulouse,France,2019,JavaScript
Éric,Meunier,Toulouse,France,2019,JavaScript
Claude,Samson,Toulouse,France,2019,JavaScript
Emmanuelle,Mercier,Biarritz,France,2017,JavaScript
Thierry,Alexandre,Biarritz,France,2017,JavaScript
Édith,Turpin,Biarritz,France,2017,JavaScript
Chantal,Caron,Biarritz,France,2017,JavaScript
Pénélope,Paris,Biarritz,France,2017,JavaScript
Christelle,Vallet,Biarritz,France,2017,JavaScript
Daniel,Roy,Biarritz,France,2017,JavaScript
Théodore,Regnier,Biarritz,France,2018,JavaScript
Benjamin,Tanguy,Biarritz,France,2018,JavaScript
Arthur,Bruneau,Biarritz,France,2018,JavaScript
Sébastien,Ferreira,Biarritz,France,2018,JavaScript
Charlotte,Roche,Biarritz,France,2018,JavaScript
Colette,Bouvier,Biarritz,France,2018,JavaScript
Alfred,"Da Silva",Biarritz,France,2018,JavaScript
Vincent,Sanchez,Biarritz,France,2019,JavaScript
Yves,Marie,Biarritz,France,2019,JavaScript
Alphonse,Leleu,Biarritz,France,2019,JavaScript
Laurence,Lemaire,Biarritz,France,2019,JavaScript
Marcel,Olivier,Biarritz,France,2019,JavaScript
Victor,Lopez,Biarritz,France,2019,JavaScript
Michel,David,Biarritz,France,2019,JavaScript
Théodore,Bousquet,Biarritz,France,2019,JavaScript
Andrée,Berthelot,Biarritz,France,2019,JavaScript
Léon,Jacquet,Biarritz,France,2019,JavaScript
Laetitia,Schneider,Biarritz,France,2019,JavaScript
Thérèse,Guyot,Biarritz,France,2019,JavaScript
$ cat history.txt
270 cd ~/Mes_documents
271 cat wilders.csv
272 cat > wilders.csv
273 egrep "France" wilders.csv
274 egrep "France," wilders.csv
275 egrep "France," "2019," wilders.csv
276 egrep "France," "2019," "PHP" wilders.csv
277 egrep "France," "2019," ",PHP" wilders.csv
278 grep "France," "2019," ",PHP" wilders.csv
279 grep "France," and "2019," wilders.csv
280 grep "France," + "2019," wilders.csv
281 grep "France,2019," wilders.csv
282 grep "France,2019,PHP" wilders.csv
283 grep "France,2019,PHP" wilders.csv | cat > php_france_2019.csv
284 ls
285 cat php_france_2019.csv
286 grep "JavaScript" wilders.csv
287 grep "JavaScript" wilders.csv | cat > JavaScript.csv
288 grep "Toulouse" JavaScript.csv
289 grep "Toulouse" JavaScript.csv | cat > javascript_biarritz_toulouse.csv
290 grep "Biarritz" JavaScript.csv | cat >> javascript_biarritz_toulouse.csv
291 cat javascript_biarritz_toulouse.csv
292 history
293 tail -20 history
294 history > history.txt
295 tail -22 history.txt
296 tail -26 history.txt
297 tail -24 history.txt > history.txt
298 cat history.txt
299 nano history.txt
300 history
301 history > history.txt
302 cat history.txt
303 tail -24 history.txt
304 tail -27 history.txt
305 tail -30 history.txt
306 history | tail -n 30 > history.txt
307 cat history.txt
308 wc -l php_france_2019.csv | cat > php_france_2019.csv
309 history | tail -n 30 > history.txt
310 history | tail -n 35 > history.txt
311 cat history.txt
312 history | tail -n 40 > history.txt
313 cat history.txt
314 history | tail -n 45 > history.txt
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
$ cat php_france_2019.csv
97 php_france_2019.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment