Skip to content

I will be collecting various shell utilities here.

Notifications You must be signed in to change notification settings

jolo2486/shell_utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

shell_utils

I will be collecting various shell utilities here; simple but potentially useful.

Scripts

runstatus

A simple script to look for a word in a file, such as a log or status file for an application, at certain intervals. This is useful for applications which do not have a traditional progressbar, but which repeatedly writes to a log or status file.

The script will simply output the number of times that the word <running> was found in <filename> every <interval> number of seconds. It will halt when the word <done> was found.

Usage

./runstatus.sh <filename> <running> <done> <interval> where <filename> is the path to the file to be checked, <running> is a word that is repeatedly written to <filename> at certain intervals, <done> is any word that when it appears in <filename> the script should exit, and <interval> is the number of seconds to wait until checking again.

Example usage

./runstatus.sh status.txt working done! 5

projinit

Usage

./projinit <path to project folder> <subfolder1> <subfolder2> ...

Initializes an existing (creates it if it doesn't exist) folder as a project folder by creating the specified subfolders, placing .gitignores in all folders and a template environment.yml file.

About

I will be collecting various shell utilities here.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages