Skip to content
Snippets Groups Projects
Commit 846f9a6f authored by ao1g22's avatar ao1g22
Browse files

Experiment with pipes and filters

parent 1d0b41c3
No related branches found
No related tags found
No related merge requests found
duplicate
duplicate
this is a duplicate line
this is a duplicate line
not a duplicate line
this line is copied
this line is copied
#!/bin/bash
for i in {1..10}
do
echo Hello $i
done
#!/bin/bash
for file in ./*
do
numLines=$(wc -l < $file)
echo The file $file contains $numLines lines of text
done
duplicate
not a duplicate line
this is a duplicate line
this line is copied
var.sh 0 → 100755
#!/bin/bash
#Set a variable
exampleVariable=$(./hello.sh)0
#Print out result
echo The value of the variable is $exampleVariable
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment