Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Shell read file line by line

while read line; do    
    echo $line    
done < file.txt
Comment

bash read file line by line

#!/bin/bash
while read line
do
  echo $line
done < /path/to/file
Comment

PREVIOUS NEXT
Code Example
Shell :: ubuntu adduser 
Shell :: github action run shell script 
Shell :: wget files matching regex 
Shell :: netcdf4 install conda 
Shell :: switch to previous branch git 
Shell :: change default editor linux 
Shell :: delete merged branches in git 
Shell :: jq install bash 
Shell :: instal yay arch linux 
Shell :: stop google process linux 
Shell :: revert to a particular commit git 
Shell :: how to change the name of a usb ubuntu] 
Shell :: grep specific file 
Shell :: remove alias powershell 
Shell :: docker run restart always 
Shell :: ubuntu fingerprint error 
Shell :: how to terminate lite server 
Shell :: ifconfig not foound 
Shell :: copy folder from local to ubuntu server 
Shell :: git push username password 
Shell :: git checkout new branch with uncommitted changes 
Shell :: install live-server via npm 
Shell :: git push repo 
Shell :: git command to switch from my current branch to another in android studio 
Shell :: linux search inside files 
Shell :: how to remove installation from cent os 
Shell :: git config global file in windows 
Shell :: bootstrap 5 react npm 
Shell :: check mint version 
Shell :: dynamodb local how to delete table 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =