linux:bash
Rozdíly
Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.
| Obě strany předchozí revizePředchozí verze | |||
| linux:bash [2020/06/01 20:35] – Added "KEEP 2 LAST NEW SUBDIRECTORIES" section nost23 | linux:bash [2020/06/01 21:05] (aktuální) – [KEEP 2 LAST NEW SUBDIRECTORIES] added note on head usage nost23 | ||
|---|---|---|---|
| Řádek 64: | Řádek 64: | ||
| It's kinda hack to get rid of parent directory [ "/ | It's kinda hack to get rid of parent directory [ "/ | ||
| + | </ | ||
| + | |||
| + | <WRAP info> | ||
| + | NOTE: usage of //head// instead of //tail// | ||
| + | < | ||
| + | head -n -2 | ||
| + | </ | ||
| + | this way we keep always 2 in case of less subdirectories. | ||
| </ | </ | ||
linux/bash.1591043736.txt.gz · Poslední úprava: 2020/06/01 20:35 autor: nost23