read
Verified for current stable LTS
Read Command: Read Stdin And Perform Action On Lines
Use for read stdin and perform action on lines with Read. Exact CLI syntax to read stdin and perform action on lines using Read.
When to use this: Use for read stdin and perform action on lines with Read.
Command Syntax
cat </dev/stdin|path/to/file|...> | while read line; do <echo|ls|rm|...> "$line"; done cat </dev/stdin|path/to/file|...> | while read line; do <echo|ls|rm|...> "$env:line"; done Command Breakdown
cat is the base executable for this command.
FAQ
Purpose: Exact syntax to read stdin and perform action on lines using Read.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Read Command: Assign Multiple Values To Variables
read <<< "<The surname is Bond>" <_ variable1 _ variable2> Read Command: Display Prompt Before Input read -p "{Enter your input here: }" <variable> Read Command: Do Not Escape Backslashes read -r <variable> Read Command: Silent Mode Input read -s <variable> Read Command: Specify Max Characters To Read read -n <character_count> <variable>