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

read file line loop in bash

for word in $(cat peptides.txt); do echo $word; done
Comment

bash get line from file

sed 'NUMq;d' file
Comment

PREVIOUS NEXT
Code Example
Shell :: how to access postgres CLI 
Shell :: clone repo with personal access token 
Shell :: linux full permission to folder 
Shell :: uninstall eclipse ubuntu 20.04 
Shell :: git update recursive submodules 
Shell :: jupyter uninstall 
Shell :: install flutter ubuntu 20.04 
Shell :: add known host github 
Shell :: pm2 kill all 
Shell :: how to create tar in unix 
Shell :: git rebase fork 
Shell :: trocar user name e emailgit 
Shell :: kill service by port number on windows 
Shell :: git log by date 
Shell :: libpng12.so.0 ubuntu 18.04 
Shell :: install ip addr on ubuntu 
Shell :: git push all 
Shell :: ubuntu install docker compose 
Shell :: install docker compose 
Shell :: connect redis cli 
Shell :: ubuntu list latest installed packages 
Shell :: list cron jobs for all users 
Shell :: get connected wifi password windows 11 
Shell :: install all pack kubectl kubens kubectx 
Shell :: Install Google Cloud SDK Snap 
Shell :: perl reverse shell 
Shell :: libgit2.so.1.1: cannot open shared object file: No such file or directory 
Shell :: firebase hosting did not update 
Shell :: install pi hole cmd 
Shell :: docker log tail 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =