Coder Social home page Coder Social logo

linux-training's Introduction

Linux-training

Host Linux Training public documents

linux-training's People

Contributors

maheshika avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

linux-training's Issues

ISO Test

Description:
Test Issue

Suggested Labels:
Firewall

Priority
Low

Component
[ISO Periodic Task]

Suggested Assignees:
chamarat-wso2

Affected Product Version:
WSO2 Support System
OS, DB, other environment details and versions:
Debian
Steps to reproduce:
Get backup
Rolleback Plan.
Restore from backup
Related Issues:
Create new rule for AWS access
download

Use double bracket for arithmetic operation in bash

Description:
Sir we can use double bracket for arithmetic operation in bash is more flexible way because it doesn't matter if there is a bracket or not. So I'm kindly suggesting to replace / include this double bracket guide.

Suggested Labels:
Improvement

Suggested Assignees:
Affected Product Version:
OS, DB, other environment details and versions:
Steps to reproduce:
Related Issues:

Current Code:

#!/bin/sh

A=70
B=90

val=`expr $A + $B` #Be Mindful about the spaces in between the "expr" , $A , + , $B  characters, 
#                  which  is a must. Otherwise script will throw a syntax error 
echo "A + B : $val"

val=`expr $A - $B`
echo "A - B : $val"

val=`expr $A \* $B`
echo "a * b : $val"

val=`expr $B / $A`
echo "B / A : $val"

val=`expr $B % $A`
echo "B % A : $val”

Suggesting Code

#!/usr/bin/bash

A=70
B=90

((val = $A + $B))
echo "A + B : $val"

((val=$A-$B))
echo "A - B : $val"

((val= $A * $B))
echo "a * b : $val"

((val = $B / $A))
echo "B / A : $val"

((val= $B % $A))
echo "B % A : $val"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.