Friday, January 31, 2020

Multipurpose Line Reader

Hi again,

If you are working with large number of servers and services in linux this might be useful to you. Not only in System Administration but also  this simple few lines can be used in different kind of situations. In my case I am going to use this shell to retrieve names of multiple git repos and create new github repos them using HUB.


Let's Start!

First create a text file and include whatever you need to parse LINE BY LINE

ex:

sudo vim input.txt
THIS LINE 1
THIS LINE 2
THIS LINE 3

Then Save it!

And then Create the shell file

sudo vim line.sh


file=/path/to/text/file
while IFS= read  -r line || [ -n "$line" ] do
echo "$line"
done < "$file"

and then save it and make sure to set chmod as +x :-)

is that it? yes!

you can do lot of cool things from this simple code. Don't forget to mention them on the comment section

and also the next post will be about usage of this shell with HUB. Thanks!



Introduction to Hub

Hi again,

Right after my welcome post, I am going to discuss about a great command line tool to work with github. This is more effective and usefull than git bash


HUB

So what is hub?

As I mentioned above hub is a command line to which is very useful in github operations.
you can see the full documentation from here 

Why hub?

The main advantage I obeserved is the ability to create repos from the terminal which could be very useful if you are working with large number of repos. Scripting is much easier with HUB


Let's install HUB with centos

First install git,

Here is the official Documentation

Then,

Well this is the fun part. In official hub installation page you will ask to install bunch of containers and then install the hub on them. Welcome to the easy way! In centos you can just install the hub with yum

sudo yum install hub

that's it! :-D

Welcome!

Hi..

This is the very first post of my blog... as a student and a Dev-ops trainee I wanted to share and discuss about my knowledge and also get to know people in the IT industry. That's why thought to start a blog. So since today there be will various kind of posts under various kind of technologies. I would like to discuss about them with you and also update my knowledge. Cheers!


Update openSSL to latest 1.1.1 version (1.1.1w)

  By the time(2024) one our system use this old OpenSSL version 1.1.1g and we are going to update it to latest version of 1.1.1 openSSL v...