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

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