User Tools

Site Tools


ops102:bash_scripting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ops102:bash_scripting [2024/03/07 21:43] – [Example Scripts] chrisops102:bash_scripting [2024/04/16 18:10] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== NOTE: This page is being edited and is NOT ready for use. ===== 
- 
 ====== Bash Scripting ===== ====== Bash Scripting =====
  
Line 176: Line 174:
 ===== Command Capture ===== ===== Command Capture =====
  
-You can capture the output (stdout) of a command as a string using the notation ''$( )''and then use that string in a variable assignment or as a command argument:+You can capture the output (stdout) of a command as a string using the notation ''$( )'' and then use that string in a variable assignment or as a command argument:
  
   $ echo "The current date and time is: $(date)"   $ echo "The current date and time is: $(date)"
ops102/bash_scripting.1709847784.txt.gz · Last modified: 2024/04/16 18:10 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki