Skip to content
Tejsumeru

Thoughts Become Reality

  • Tutorials
  • Video Tutorial
  • Tutorials
  • Video Tutorial
  • Tutorials

    Write a shell script that store content from console to file until end is encountered and print number of line and content of stored file

    February 25, 2020 - By tejsumeru.12@gmail.com

    echo "Enter Content" touch contentfile end="end" while true do read content if [ "$content" != "$end" ] then echo $content >> contentfile line=$((line + 1)) else break fi done echo "-----------------------------------------" echo " Content Of File" echo "Name Of File :: contentfile" echo "Number Of Line $line" read data < contentfile while read data do echo "$data" done < contentfile echo "-----------------------------------------"  

    Continue Reading
  • Tutorials

    Write a shell script for performing the functions of a basic calculator.

    January 28, 2020 - By tejsumeru.12@gmail.com

    This will execute basic calculator operation. echo -n "Enter the First Value " read no1 echo -n "Enter the Second Value " read no2 echo " *** Choice *** " echo "1. Addition" echo "2. Subtraction" echo "3. Multiplication" echo "4. Division" echo "5. Modulo" echo -n "Enter Choice: " read choice case $choice in 1) echo -n $no1 "+" $no2 "is " result=`expr $no1 + $no2` echo $result;; 2) echo -n $no1 "-" $no2 "is " result=`expr $no1 - $no2` echo $result;; 3) echo -n $no1 "*" $no2 "is " result=$((no1 * no2)) echo $result;; 4) echo -n $no1…

    Continue Reading
  • Tutorials

    UNIT- I Introduction And Security Threats

    July 27, 2019 - By tejsumeru.12@gmail.com

    [pdf-embedder url=”http://tejsumeru.com/wp-content/uploads/2019/07/unit-1.pdf” title=”CNS Unit 1″]

    Continue Reading
Newer Posts 

Categories

  • Android With Java
  • Android With Kotlin
  • C language
  • C++ Language
  • Data Structure
  • Error Solving
  • Flutter
  • Go Lang
  • Interview Quetions
  • Java
  • Javascript
  • Kotlin
  • Machine Learning
  • MATLAB
  • PHP
  • Python
  • SciPy
  • Tutorials
  • Wordpress
Graceful Theme by Optima Themes