Skip to content
The Shell Reliquary

/static/relicario/en/reliquia/palavra-n/

Menu

SHL-009 · Words

!:n

The nth word of the previous line — the command is word zero.

The previous line is sliced into words, numbered from zero. !:1 is the first argument, !:2 the second, and so on.

It's the precision piece of the box: when the argument you want sits in the middle of the line, it comes out alone, without its neighbors.

$ tar -tzf coleta-2026.tar.gz
exsicatas/
$ file !:2
file coleta-2026.tar.gz
Word two, plucked from the middle of the line.