Answers for "shell open a file"

18

read file using shell script

#!/bin/bash
input="/path/to/txt/file"
while IFS= read -r line
do
  echo "$line"
done < "$input"
Posted by: Guest on February-22-2020
0

how to open file in linux

xdg-open <filename>
Posted by: Guest on June-06-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language