How To - Shell Scripting - Bash - Basics - 2 - AWK command usage
Hello Everyone,
In this post I will share what I have learned on awk.
A little bit introuduction of awk
AWK is a domain-specific language designed for text processing and
typically used as a data extraction and reporting tool. Like sed and
grep, it is a filter, and is a standard feature of most Unix-like
operating...
How To - Shell Scripting - Bash - Basics - 1 - Functions
How To - Shell Scripting - Bash - Basics - 1 - Functions
Hello Everyone,
I will try publishing a series of articles on shell scripting. We are going to use bash which is default shell in almost all famous linux & unit operating systems.
Functions
The theory behind creating a function is simple, if you have a piece of code and you are going to use over and over, then instead...
How To: Logging with Javascript using Date class
Hello,If you are trying to print a neat date format in Javascript using Date() class, then you can use below snippet.Its a ES6 based function with template literals.
const date = () => {
const d = new Date();
return `${d.getFullYear()}-${d.getMonth()}-${d.getDate()}_${d.getHours()}-${d.getMinutes()}-${d.getSeconds()}_${d.getMilliseconds()} => `;
};
If you...
How to resolve VERR_NEM_VM_CREATE_FAILED in Windows ?
How to resolve VERR_NEM_VM_CREATE_FAILED in Windows ?
Hello Everyone,
So I tried to install VirtuaBox VM in Windows 10 and I was getting VERR_NEM_VM_CREATE_FAILED error. After trying many solutions and searching a log in internet, Finally issue got resolved with below command.
Open cmd prompt as Administrator.
Shut down all programs. You will have to shut down, unplug, and restart...
How to: Bash PID of last execute command
* {
font-family: 'Merriweather', serif;
}
Hello Everyone
In shell scripting if you want to get PID of last executed command, then you can use BASH `$!` meta variable.
For example lets say if you have below command
# nohup sha256sum 1g.bin &
If you want to find that job PID which is running in the background, use below command
# echo $!
For Example
[x:/tmp]# nohup sha256sum...
Subscribe to:
Posts (Atom)