Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

shell command read first lines

# credit to the Stack Overflow user in the source link
# the line is stored in a variable, remove 'line=' to print on display

line=$(head -n 1 filename)
Comment

PREVIOUS NEXT
Code Example
Shell :: git get project name 
Shell :: flutter : command not found 
Shell :: unable to locate package ubuntu 
Shell :: git stash drop 
Shell :: install gui centos 7 
Shell :: composer install debian 
Shell :: install make 
Shell :: zsh aliases 
Shell :: my shell bash scripting practice 
Shell :: git stash docs 
Shell :: wget save file with different name 
Shell :: bash escape special characters in variable 
Shell :: free todo linux 
Shell :: check gateway linux 
Shell :: scp from remote to local 
Shell :: install docker in ubuntu 
Shell :: How to change DNS on Kali 
Shell :: expo font install 
Shell :: geopandas install windows 
Shell :: create batch file to delete folders 
Shell :: Cask adoptopenjdk8 exists in multiple taps: 
Shell :: ssh copy 
Shell :: ubuntu run in port 80 
Shell :: minecraft .bat code 
Shell :: git push with gpg key 
Shell :: docker remove unused 
Shell :: kubectl commands 
Shell :: install docker on windows powershell 
Shell :: install brew in mac 
Shell :: set up openssh 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =