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

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 -n ene "my command" | socat - /dev/somefile

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 -n e "my command" | socat - /dev/somefile

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
edited tags; edited title
Link
ilkkachu
  • 147.9k
  • 16
  • 268
  • 441

bash: What does '-' as a file parameter mean?

More explicit title to the question posed
Link
DopeGhoti
  • 79.2k
  • 10
  • 107
  • 141

bash: What is the "does '-" character in bash' as a file parameter mean?

Source Link
tarabyte
  • 4.6k
  • 12
  • 43
  • 52
Loading