Skip to content
/ kbull Public

Kickstarter for Bash scripts in the Unsupervised Language Learning course.

Notifications You must be signed in to change notification settings

mslatour/kbull

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kbull

Kickstarter for Bash scripts in the Unsupervised Language Learning course. Intended to help writing bash scripts that automate a large set of processing steps without losing sight of what it is doing.

No guarantees whatsoever, I just wrote it for myself because I wanted to. It might be improved over time, it might not.

Usage

#!/bin/bash

# Point to the kbull init script
source init.sh

log "INFO" "You can set a timer using 'begin'" "blue"
begin

log "INFO" "You can have multiple nested timers by naming them" "blue"

begin "Subproc1"

log "INFO" "You can print a command and run it at the same time" "yellow"
run "echo \"Hello World\""
log "INFO" "You can let run only execute a command, if some result file does not exist yet" "green"
run_safe "cat file1 > file2" "file2"

fgcolor "red"

log "OUCH" "You can adjust colors more easily"
log "INFO" "End reset the color" "blue"

end "Subproc1"

end

# At the end, reset the colors
resetcolor

About

Kickstarter for Bash scripts in the Unsupervised Language Learning course.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages