Tech tutorials, How To's & User guides

MENUMENU
  • Linux
  • Ubuntu
  • Python
  • NodeJS
  • Apache
  • Nginx
  • Website Administration
    • PHP
    • Django
  • Git

command output

How to Assign Command Output to Variable in Shell Script

December 14, 2021December 14, 2021 Sreeram Sreenivasan Leave a comment CentOS/RHEL, Linux, Ubuntu
assign command output in shell script

Sometimes you may need to assign command output to variable in bash, capture output of command or set variable to command output. Here is how to assign command output to variable in Shell Script.

Continue reading


Recent Posts

  • How to Start Background Process in Python
  • How to Check if Substring is in List of Strings
  • How to Check if Column is Empty or Null in MySQL
  • How to Schedule Multiple Cron Jobs in One Crontab
  • How to POST JSON Data in Python Requests

Follow Us

  • Facebook
  • Twitter
© 2021 Fedingo | About Us | Contact Us | Privacy Policy
dazzling Theme by Colorlib Powered by WordPress