• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

bash script

How to convert float to integer number

May 23, 2013 by Sharad Chhetri Leave a Comment

How to convert float to integer number In this tutorial we will learn how to convert float to integer number. This tutorial is helpful in bash or shell scripting. For eg. the float value number is 204.47584 and you would like to show only number in integer form means upto 204. So for this use […]

Filed Under: Linux, Tips And Tricks Tagged With: bash script

script to change group from a file having list of users

June 17, 2011 by Sharad Chhetri Leave a Comment

In this post we are sharing the script to change group from a file having list of users. You can do the changes in script as per your requirement. The script is also using the /etc/group file to validate group names which could be existing in user supplied group file. Given below is the sample […]

Filed Under: Linux Tagged With: bash script

Set and reset user password by bash script

June 8, 2011 by Sharad Chhetri Leave a Comment

In this post learn how to set and reset user password by bash script on Linux systems. It is quite good for Linux System Admin who wants to know how to set and reset user account password with bash script. We have used the standard input (stdin) with passwd command. Advantage: 1. Get the list […]

Filed Under: Linux Tagged With: bash script

How To Use opt In Bash Script

May 15, 2011 by Sharad Chhetri Leave a Comment

How To Use opt In Bash Script,Example This is an exmaple of how to create bash script with Opt in. #!/bin/bash echo “Select no. for option” OPTIONS=”Hello LinuxTribe Quit” select opt in $OPTIONS; do if [ “$opt” = “Quit” ]; then echo done exit elif [ “$opt” = “Hello” ]; then echo Hello World elif […]

Filed Under: Linux Tagged With: bash script

How To Use case in Bash Script, Example

May 15, 2011 by Sharad Chhetri Leave a Comment

How To Use case in Bash Script, Example This is only an example. #/bin/bash echo “Give Full Path where the file is located” read pth echo “Give the file name” read fle if [ -f $pth/$fle ];then echo “$fle file is found in $pth” else echo “$fle file not found in $pth” echo “U r […]

Filed Under: Linux Tagged With: bash script

How to Use Expect In Bash Script

December 7, 2010 by Sharad Chhetri 10 Comments

expect bash

In this bash script we will use expect scripting. Expect is known primarily as an indispensable application for system administrators. We use expect generally in case where input from user is required , for eg. ssh, ftp, telnet, sudo etc. Given below is sample bash script which will first ssh the remote host and then […]

Filed Under: Linux Tagged With: bash script, expect

  • « Go to Previous Page
  • Go to page 1
  • Go to page 2

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Command

What is Linux Internal And External Command

Linux Basic Commands With Examples For Every Beginner

tr command to convert lines to space , tab and vertical tab

smbpasswd command not found on CentOS 7 and RHEL 7

Solution : semanage command not found

Unix / Linux : How to print duplicate lines from file

More Posts from this Category

You Might Like These Articles!

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

libfuse

dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Failed to open/create the internal network

VirtualBox Error: Failed to open/create the internal network

Always Useful Tips And Tricks

send email after mysql backup through bash script in simple way

Do not show line haveing particular keyword by grep command

30 useful Linux terminal keyboard shortcuts

master admin password openerp 7.x

How to see system load average in terminal with graphical representation

How to install pam_mysql in CentOS or Red Hat

How to configure htdigest in nagios server

Explore 90+ Article On "Linux Tips And Tricks"

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy