Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash iterate over lines of a file

while read p; do
  echo "$p"
done <peptides.txt
Comment

bash loop lines in file

#!/bin/bash
filename='peptides.txt'
echo Start
while read p; do 
    echo $p
done < $filename
Comment

bash for each line of file

while read p; do
  echo "$p"
done <peptides.txt
Comment

PREVIOUS NEXT
Code Example
Shell :: unable to create process using 
Shell :: linux give permission to directory 
Shell :: imagemagick convert heic to jpg mac 
Shell :: ubuntu install ssh server 
Shell :: install jupyter notebbok in pip 
Shell :: how to install pgzrun 
Shell :: how to check mac address in linux 
Shell :: list all users linux 
Shell :: powershell change hostname 
Shell :: Library not loaded: /opt/homebrew/opt/icu4c/lib/libicui18n.69.dylib 
Shell :: linux list groups 
Shell :: remove snap package 
Shell :: java change version mac 
Shell :: windows update node 
Shell :: bash multiple commands one line 
Shell :: killall command not found ubuntu 
Shell :: bash for-schleife 1 bis 10 
Shell :: ghostscript on ubuntu 
Shell :: resize image on github comment 
Shell :: linux opengl 
Shell :: bitbucket delete remote tag 
Shell :: install edge on ubuntu 
Shell :: windows install chocolatey 
Shell :: git ignore whitespace 
Shell :: root check bash script 
Shell :: pipenv an error occurred while installing psycopg2==2.8.4 
Shell :: heroku run seeds 
Shell :: linux open current directory in gui 
Shell :: restart server centos 
Shell :: cannot update snap namespace: cannot create symlink in "/etc/docker": existing file in the way snap-update-ns failed with code 1 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =