Skip to content
Saturday, May 10, 2025
Latest:
  • How to resolve -bash: netstat: command not found centos stream 9
  • python script to STT output in a text file
  • New Install Asterisk 18 from source on CentOS Stream 8
  • How to save audio stream from Asterisk to a file via WebSocket
  • create web socket and save data in a text file

Eduguru

Tech Blog and Discussion

  • Blog
  • Discussion
  • Asterisk Support
  • Contact Us
  • Quiz
    • C Program
    • C – Input/Output
    • PHP Program
    • Basic SQL
shell programming
linux 

Use of Semicolons in Shell Script

January 17, 2020January 17, 2020 eduguru Instead of being on separate lines, semicolon in linux shell script, shell script, statements can be separated by a semicolon (;) – For example: if grep "UNIX" myfile; then echo "Got it"; fi – This actually works anywhere in the shell. % cwd=`pwd`; cd $HOME; ls; cd $cwd, Use of Semicolons in Shell Script, where to use semicolon in linux shell script, why use semicolon in shell script

Use of Semicolons in Shell Script

  • Instead of being on separate lines, statements can be separated by a semicolon (;)

– For example:

if grep “UNIX” myfile; then echo “Got it”; fi

– This actually works anywhere in the shell.

% cwd=`pwd`; cd $HOME; ls; cd $cwd

shell programming use of semicolon
shell programming use of semicolon

 

Posts to Review:

shell programmingControl Statements in Shell script
  • ← if Statement in Shell Script
  • IGNOU BCS-011 COMPUTER BASICS AND PC SOFTWARE pdf Book Download →

Recent Article

  • How to resolve -bash: netstat: command not found centos stream 9
  • python script to STT output in a text file
  • New Install Asterisk 18 from source on CentOS Stream 8
  • How to save audio stream from Asterisk to a file via WebSocket
  • create web socket and save data in a text file
  • How to capture and analyze traffic with tcpdump
  • Installing Asterisk 20 From source On Rocky 9
  • html drop down with search from table php mysql
  • How to Install and Use FFmpeg on CentOS 8
  • How to get duration of MP3 or wav any audio File in PHP
  • How to Change location Of MariaDB Data Directory
  • How to check partition details of MySQL table
  • internal server error when download large file php
  • iostat : How to monitor disk activity and CPU load average
  • Webrtc with Asterisk 16 : complete configuration with SIP

Tags

1st Semester Question Paper asterisk basics of java C# coronavirus c program c program example c programming c tutorial c tutorials cyber security download bca question paper Download bca Question Paper december 2017 download ignou bca question dec 2017 download previous year question paper Download Question Paper december 2017 Download Question Paper June 2017 ETHICAL HACKING HACKERS HACKING html ignou IT- Security Java java basics java program java programming java tutorials learn c let us C Linux MySQL NEW TECHNOLOGY Question Paper Download RESEARCH AND INNOVATION security Software software testing technology testing ubuntu UNIX web-app web-site Write a C Program
Copyright © 2025 Eduguru. All rights reserved.
Theme: ColorMag by ThemeGrill. Powered by WordPress.