Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

assign contents of file to variable bash

file1=`cat answer.txt`
echo $file1
Comment

PREVIOUS NEXT
Code Example
Shell :: how to uninstall git 
Shell :: scp download 
Shell :: convert a WSL 1 distro to WSL 2 
Shell :: ubuntu console png to pdf 
Shell :: how to create a file with a given size in linux? 
Shell :: how to update code in github 
Shell :: env variables list ubuntu 
Shell :: make shortcut folder for wamp 
Shell :: convert cer to crt linux mint 
Shell :: chmod: Unable to change file mode Operation not permitted 
Shell :: nodemon use 
Shell :: github no changes added to commit 
Shell :: change owner of directory mac terminal 
Shell :: : keyserver receive failed: No dirmngr 
Shell :: how to restart x window manager in ubuntu 18.04 
Shell :: shell sort algorithm is an example of? 
Shell :: tar extract to specific location 
Shell :: how to check is heroku git remote is added 
Shell :: flask install venv 
Shell :: pip upgrade package 
Shell :: conda install line_profiler 
Shell :: git create branch from master 
Shell :: repository commands 
Shell :: git: create and remove git alias command 
Shell :: how to give permission to a user in linux on a folder 
Shell :: command line remove directory and contents 
Shell :: make file powershell 
Shell :: open port 8080 fedora 
Shell :: bash variable lowercase 
Shell :: refresh desktop entries 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =