Commit 8bd6ee2f authored by vagrant's avatar vagrant

completed questions 1, 3 and 4

parents
#!/bin/bash
counter=1
while [ $counter -le 50 ]
do
if [ $(($counter % 2)) != 0 ]
then
echo "Number is : $counter"
fi
((counter++))
done
#!/bin/bash
while IFS="," read c1 c2 c3
do
echo "insert into myfurits (code, name, color) values ($c1,\"$c2\",\"$c3\");"
done < sample.txt
1,Apple,Color is Red
2,Mango,Color is Orange
3,Banana,Color is Yellow
#!/bin/bash
for file in $1
do
if [[ -f $file ]]
then
echo ${file^^}
else
echo "File ${file} not found"
fi
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment