Skip to main content
deleted 8 characters in body
Source Link
Kusalananda
  • 355.8k
  • 42
  • 735
  • 1.1k

Try the below,

atq | awk '{print $1}'

The single quotes stops the shell from expanding $1 to the shellshell's first command positional parameter.

Try the below,

atq | awk '{print $1}'

The single quotes stops the shell from expanding $1 to the shell first command positional parameter.

Try the below,

atq | awk '{print $1}'

The single quotes stops the shell from expanding $1 to the shell's first positional parameter.

Added more explanation.
Source Link
Kusalananda
  • 355.8k
  • 42
  • 735
  • 1.1k

Try the below,

atq | awk '{print $1}'

The single quotes stops the shell from expanding $1 to the shell first command positional parameter.

Try the below,

atq | awk '{print $1}'

Try the below,

atq | awk '{print $1}'

The single quotes stops the shell from expanding $1 to the shell first command positional parameter.

Source Link
Stack EG
  • 1.8k
  • 1
  • 14
  • 13

Try the below,

atq | awk '{print $1}'