Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Bash script general template to generate script format

#!/bin/bash

#place it in '/bin/template'

echo -e "Enter File Name: c"
read -r file_name

touch ~/test-scripts/$file_name.bash
chmod +x ~/test-scripts/$file_name.bash

echo '#!/bin/bash' > ~/test-scripts/$file_name.bash
echo >> ~/test-scripts/$file_name.bash
echo '# Description:' >> ~/test-scripts/$file_name.bash
echo '# Created Date: 06/7/2022' >> ~/test-scripts/$file_name.bash
echo '# Modified Date: 06/7/2022' >> ~/test-scripts/$file_name.bash
echo '# Auther: Sunny' >> ~/test-scripts/$file_name.bash
echo '# Version: 1.0' >> ~/test-scripts/$file_name.bash
echo >> ~/test-scripts/$file_name.bash
vim ~/test-scripts/$file_name.bash
Comment

Bash script general template to generate script format

#!/bin/bash

#place it in '/bin/template'

echo -e "Enter File Name: c"
read -r file_name

touch ~/test-scripts/$file_name.bash
chmod +x ~/test-scripts/$file_name.bash

echo '#!/bin/bash' > ~/test-scripts/$file_name.bash
echo >> ~/test-scripts/$file_name.bash
echo '# Description:' >> ~/test-scripts/$file_name.bash
echo '# Created Date: 06/7/2022' >> ~/test-scripts/$file_name.bash
echo '# Modified Date: 06/7/2022' >> ~/test-scripts/$file_name.bash
echo '# Auther: Sunny' >> ~/test-scripts/$file_name.bash
echo '# Version: 1.0' >> ~/test-scripts/$file_name.bash
echo >> ~/test-scripts/$file_name.bash
vim ~/test-scripts/$file_name.bash
Comment

PREVIOUS NEXT
Code Example
Shell :: mac fill hard drive with random data 
Shell :: ubuntu compressed extract 
Shell :: CLONE DISK LINUX 
Shell :: git needs merge 
Shell :: Environment Variables Liu 
Shell :: start appwerite 
Shell :: start docker api 
Shell :: bash arithmetics 
Shell :: get git output to terminal instead of less editor 
Shell :: opera mini for ubuntu 18.04 
Shell :: create multiple files on Linux in sequence through the terminal 
Shell :: how to download octave in ubuntu 
Shell :: kubectl run ubuntu 
Shell :: ubuntu install jitsi 
Shell :: docker restart always 
Shell :: command to kill port in linux 
Shell :: stop valet auto srart in mac 
Shell :: Command for turning on/off network in Centos 8 
Shell :: packet8 
Shell :: git: svn download a single folder from github repository ( such as : image folder ) on mac 
Shell :: install cron into shell script 
Shell :: remove directiory bash 
Shell :: command to change user home directory 
Shell :: apt install dbreaver 
Shell :: ros2 galactic source 
Shell :: exporting samtools to path 1.13 
Shell :: heading in github readme 
Shell :: powershell send message to all currently logged on users 
Shell :: command to ceck number of lines or words in a file 
Shell :: how to look for tree in ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =