Skip to content
Snippets Groups Projects
Select Git revision
  • 29911c641c67c313fd95cff333ca1f77b96d6c03
  • master default protected
2 results

var.sh

Blame
  • var.sh 232 B
    #!/bin/bash
    
    exampleVariable=600
    
    for i in {1..10}
    do
    	echo hello $i
    done
    
    for file in ./*
    do
    	numLines=$(wc -l < $file)
    	echo the file $file contains $numLines lines of text
    done
    
    echo the value of the variable is $exampleVariable