Author Archives: Roopendra - Page 4
[Warning] IPv4 forwarding is disabled. Networking will not work
IPv4 forwarding is disabled WARNING I was facing this issue while creating a Docker image in Centos 7. Error: ---> IPv4 forwarding is disabled. Networking will not work. Solution: Add…
Could not resolve host: mirrorlist.centos.org Centos 7
I have installed Centos 7 in Vmware WorkStation. I tried to install few new packages using yum install. However, I was getting error "Could not resolve host: Centos 7" [root@localhost…
ASCII Table – ASCII Character Codes
What is the ASCII Code? ASCII (ASS-kee) abbreviated from American Standard Code for Information Interchange, is a character encoding standard for electronic communication. ASCII codes represent text in computers, telecommunications…
How to Split String with a Delimiter in Shell Script
Split String with a Delimiter in Shell Script You can use Internal Field Separator (IFS) variable in shell script to split string into array. When we set IFS variable then…
How to validate date format in shell script
How to validate date format in shell script There are multiple ways you can validate date format in shell script. You can compare date format with regular expression or you…
Loop through a date range in Shell Script
Loop through a date range in Shell Script Here is a simple shell script which accept two date value as argument and perform desired action for date value in #!/usr/bin/bash…
Pass date as mandatory arguments in bash script
Pass date as mandatory arguments in bash script I came across a use case where I have to write a shell script to perform some action on two date ranges.…
How to define multiline string variable in shell?
How to define multiline string variable in shell? In your bash/shell scripting experience you may face scenario where you need to define multi line string variable. Here is multiple ways…
How to read a config file in Python
How to read a config file in Python: This article will help you to read config based on the environment. For example, If you have a python script which uses…
How to run multiple bash scripts in parallel
If you working as a Linux administrator or as a DevOps engineer then you might get a use case where you need to run multiple bash scripts in parallel without…