mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-10-25 17:42:27 +08:00
* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
8 lines
677 B
Markdown
8 lines
677 B
Markdown
# Here Strings
|
|
|
|
Here strings provide a way to pass strings to commands as standard input. They are a simplified form of here documents, designed for single-line input. Instead of redirecting a file or typing input directly, you can embed the string directly within the command using the `<<<` operator. This is particularly useful for commands that expect input from stdin but you want to provide it inline within your script.
|
|
|
|
Visit the following resources to learn more:
|
|
|
|
- [@article@Here Strings](https://tldp.org/LDP/abs/html/x17837.html)
|
|
- [@video@Here Strings in Bash! Redirecting a string into stdin. You Suck at Programming](https://www.youtube.com/watch?v=0cWuZvw8lXc) |