LEARNING BASH #3 • BASHRC

in #linux7 years ago (edited)

LEARNING BASH

Published with SteemPeak

ScreenshotScreenshot by Willi Glenz

CONTENTS

001 • sources                                       v2 19-05
003 • ~/.bashrc                                     v1 19-05 new
002 • script-editor                                 v1 19-05 



#003

003 • BASHRC
$ vim ~/.bashrc
export PATH=$HOME/bin:$PATH
:wq


002 • SCRIPT-EDITOR 
#!/bin/bash
# scripteditor
# ~/bin/ed
# ed scriptname.sh

[ -z "$1" ] && exit 1

vim "$HOME/bin/$1"
chmod 744 "$HOME/bin/$1"
exit


001 • SOURCES
ADVANCED-BASH-SCRIPTING-GUIDE
# apt search abs-guide
# apt show abs-guide
# apt install abs-guide
$ dpkg -L abs-guide
> file:///usr/share/doc/abs-guide/html/index.html
Advanced Bash Scripting Guide   : tldp.org/LDP/abs/html/
Bash Guide for Beginners        : tldp.org/LDP/Bash-Beginners-Guide/html/index.html