git clone https://github.com/CoderTypist/myUtil.git
./myUtil/installMyUtil
=====================================
myUtil is a series of aliases and bash scripts I made to make it easier to navigate through directories and add custom scripts to /usr/local/bin
=====================================
ls will list multiple directory entries on the same line in the terminal. ls -l will list all of the entries on their own line, but add a bunch of extra information. Sometimes I don't need the extra information, so I made a script that would list the name of each directory entry on its own line. I then made a script that could add things to /usr/local/bin since it lies on the PATH.
=====================================
====================
Lists each directory entry on its own line
====================
Lists each item in the current directory on its own line (all text is white)
====================
lists each directory on the PATH on its own line
====================
copies the specified item to /usr/local/bin
====================
moves the specified item to /usr/local/bin
====================
Removes the first and last character from the received text. You must use xargs when piping input to trim.
Ex: trim "done"
output: on
Ex: echo "This" | xargs trim
output: hi
====================
Description:
Creates a random file in the format: ./some_directory/temp_randomNumber
How it works:
If no input is provided, the file is created in the current directory
If a directory is provided, randtemp checks to see if the directory exists.
If the directory does not exist, no file is created.
Purposes:
-
You may need to create multiple temporary files during your script, and randtemp will create one for you. You won't have to make up the name yourself or worry about the file already existing.
-
You may write want to write to a file named "temp", but a file named "temp" may already exist, and you may not want to overwrite the contents of that file.
Disclaimer:
randtemp can only generate 1 of 32768 possible filenames
If all 32768 filenames already exist, this program program will run forever
====================
Removes all instances of [one or more numbers] from the specified file
Ex: dewiki textFromWikipedia.txt
====================
Removes all blank lines from the specified file
====================
Removes all blank lines from files in the specified directory
====================
Displays two files to the console side by side.
Spaces are printed in place of newline characters and tabs.
dualdisp file1.txt file2.txt
You can select how many characters from a file to display per line. The default is 20.
dualdisp file.txt file2.txt 10
====================
Loads all of the specified programs into clisp.
cload ./lispFunctions.lsp ./lispCommands.lsp
The above translates to:
(load "./lispFunctions.lsp" :echo T :print T) (load "./lispCommands.lsp" :echo T :print T) | clisp