Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
read file using shell script
Rocio Garcia Luque
Programming language:
Shell/Bash
2021-06-12 10:22:50
0
Q:
read file using shell script
Amy Yao
Code:
Shell/Bash
2021-03-16 15:00:18
#!/bin/bash input="/path/to/txt/file" while IFS= read -r line do echo "$line" done < "$input"
2
Tags
file
using
shell
script
read
Related
command linux write read and execute values
bash read command examples
bash write file
shell script to check the output of a file
shell file in linux
powershell read xaml file
New to Communities?
Join the community