Skip to main content
4 of 4
deleted 1 character in body
tarabyte
  • 4.6k
  • 12
  • 43
  • 52

What does '-' as a file parameter mean?

I'm having trouble finding a name for the - character in the context of a piped bash command.

  1. What is the - character called?
  2. Can I replace it with something more readable for a script?

Example command:

echo -ne "my command" | socat - /dev/somefile
tarabyte
  • 4.6k
  • 12
  • 43
  • 52