Útil para escrever uma programação contendo dias da semana selecionados (para o programa de um curso, por exemplo).
Gerar listas de datas selecionadas dos dias da semana (eu uso Research Maniacs Days by Year ):
Tuesday, August 23, 2016
Tuesday, August 30, 2016
Tuesday, September 6, 2016
Tuesday, September 13, 2016
Tuesday, September 20, 2016
Tuesday, September 27, 2016
Tuesday, October 4, 2016
Tuesday, October 11, 2016
Tuesday, October 18, 2016
Thursday, August 25, 2016
Thursday, September 1, 2016
Thursday, September 8, 2016
Thursday, September 15, 2016
Thursday, September 22, 2016
Thursday, September 29, 2016
Thursday, October 6, 2016
Thursday, October 13, 2016
Thursday, October 20, 2016
Em seguida, classifique com sort -k 2,2M -k 3,3n
. Isso classifica usando o segundo campo delimitado por espaço em branco (apenas) como uma chave, usando o -M
sinalizador para comparação do nome do mês da string e, em seguida, usa o terceiro campo delimitado por espaço em branco (apenas) como uma chave usando o -n
sinalizador para dia numérico.
Tuesday, August 23, 2016
Thursday, August 25, 2016
Tuesday, August 30, 2016
Thursday, September 1, 2016
Tuesday, September 6, 2016
Thursday, September 8, 2016
Tuesday, September 13, 2016
Thursday, September 15, 2016
Tuesday, September 20, 2016
Thursday, September 22, 2016
Tuesday, September 27, 2016
Thursday, September 29, 2016
Tuesday, October 4, 2016
Thursday, October 6, 2016
Tuesday, October 11, 2016
Thursday, October 13, 2016
Tuesday, October 18, 2016
Thursday, October 20, 2016
Usando GNU coreutils sort
5.93 em x86-64 Apple Darwin 15.6.0.
Leitura adicional: Classificando várias chaves com classificação Unix