Linux_Assignment_Answers
Linux_Assignment_Answers
ls ???
ls *[abc]*
ls file*
4. Filenames beginning with 'ca' and ending with two digits:
ls ca[0-9][0-9]
ls s*[a]*
#!/bin/bash
fact=1
fact=$((fact * i))
done
#!/bin/bash
a=0; b=1
fn=$((a + b))
a=$b; b=$fn
done
echo
#!/bin/bash
max=$a
max=$b
else
max=$c
fi
Q6. Shell script that displays lines between given line numbers
#!/bin/bash
#!/bin/bash
for f in *; do
echo "$f"
fi
done
Q8. Redirect stdin and stdout so scanf() reads from pipe and printf() writes into pipe
mkfifo mypipe
#!/bin/bash
echo "Even"
else
echo "Odd"
fi
#!/bin/bash
done
echo
done
#!/bin/bash