Comparing decimal numbers with bash/shell script is bit tricky operation I use following script to compare decimal numbers #!/bin/bash NUM1=2.0 NUM2=3.0 if (( $(echo "$NUM1 < $NUM2" | bc -l)… more →
Sany's Linux and Open Source Blogwrote 3 days ago: Comparing decimal numbers with bash/shell script is bit tricky operation I use following scri … more →
wrote 1 week ago: Blasphemy! What’s this now, microsoft things for Linux? Heresy I say! So yeah, I wrote a littl … more →
wrote 1 month ago: Hi All, Today i came with some different script and very simple script To start the team viewer remo … more →
wrote 1 month ago: Recently in a script I am trying to coloured text in one of the script. I have been tried cou … more →
wrote 2 months ago: Bash Linux command line cat it_IT | sort | awk ‘!x[$0]++’ > it_IT.new … more →
wrote 3 months ago: One of the cool things about distributed version-control systems (VCSs) or source-control managers ( … more →
wrote 4 months ago: To get response time of website/url with curl use following command: $ curl -o /dev/null -s - … more →
wrote 4 months ago: Its a bit tedious task to kill if there are multiple process with same name. In general we will kill … more →
wrote 5 months ago: This is an introductory post to Shell Scripting which will be followed by many other each highlighti … more →
wrote 5 months ago: My recent encounter with system log files eating up disk space (see Low disk space warning) has me s … more →
wrote 5 months ago: In previous post we seen about reusing command line history. Now I will explain about how to reuse p … more →
wrote 5 months ago: Moving or renaming files with xargs is a bit tricky operation. mv require both input and outp … more →
wrote 6 months ago: There are different ways to count number of lines in a file. I will show the some of commands … more →
wrote 6 months ago: So I’m doing a private collab and hosting a git repo off my server. Got annoying pretty quick … more →
wrote 6 months ago: To check if a string is empty/null or not use -n string or -z string with if condition. -n string wi … more →
wrote 6 months ago: Shell scripts use fairly standard syntax for if statements. The conditional statement is executed us … more →
wrote 6 months ago: Debugging is a important part while writing a scripts. To debug particular block of code in s … more →
wrote 6 months ago: To easiest way to read a random line form a file use shuf command. Example: To generate a si … more →
wrote 7 months ago: Use break command to exit from a loop after your functional requirement is done. Example: Fol … more →