Code Script 🚀

: Bash

Make a Bash alias that takes a parameter

Make a Bash alias that takes a parameter

I utilized to usage CShell csh which lets you brand an alias that takes a parameter The notation was thing similar alias junkmv Trash Successful Bash this does

Read more →

How to change the output color of echo in Linux

How to change the output color of echo in Linux

I americium making an attempt to mark a matter successful the terminal utilizing echo bid I privation to mark the matter successful a reddish colour However

Read more →

Count number of lines in a git repository

Count number of lines in a git repository

However would I number the entire figure of traces immediate successful each the information successful a git repository git lsinformation offers maine a

Read more →

How to create a temporary directory

How to create a temporary directory

I utilized to make a tempfile delete it and recreate it arsenic a listing temptempfile rm f temp ltbreakpointgt mkdir temp The job is once it runs to the

Read more →

How to insert a text at the beginning of a file

How to insert a text at the beginning of a file

Truthful cold Ive been capable to discovery retired however to adhd a formation astatine the opening of a record however thats not precisely what I privation

Read more →

How to view files in binary from bash

How to view files in binary from bash

I would similar to position the contents of a record successful the actual listing however successful binary from the bid formation However tin I accomplish

Read more →

Accessing bash command line args  vs

Accessing bash command line args vs

Successful galore Truthful questions and bash tutorials I seat that I tin entree bid formation args successful bash scripts successful 2 methods gtfeline

Read more →

echo that outputs to stderr

echo that outputs to stderr

Is location a modular Bash bid that acts similar echo however outputs to stderr instead than stdout I cognize I tin bash echo foo 1gtamp2 however its kinda

Read more →

How to redirect output to a file and stdout

How to redirect output to a file and stdout

Successful bash calling foo would show immoderate output from that bid connected the stdout Calling foo gt output would redirect immoderate output from that

Read more →