Commit e4aceebd authored by Julius Wu's avatar Julius Wu

add files

parent 61415d40
#!/bin/bash
cat timesheet.csv | awk -F"," ' {if (($7 == "Y")) print; } ' | cut -d ',' -f5,7-8
\ No newline at end of file
#!/bin/bash
i=0
while [ $i -lt 50 ]
do
remainder=$(( $i % 2 ))
if [ $remainder -ne 0 ]
then
echo "Number is : " $i
fi
i=$(($i+1))
done
\ No newline at end of file
#!/bin/bash
awk -F, '{ print "insert into my fruits (code, name,color) values ("$1",\""$2"\",\""$3"\")" }' sample.txt
#!/bin/bash
for file in ${@}
do
if [[ -f $file ]]
then
echo ${file^^}
else
echo "File ${file} does not exist"
fi
done;
\ No newline at end of file
#!/bin/bash
user = 'root'
grep -c '^$user' /etc/passwd
\ No newline at end of file
1,Apple,Color is Red
2,Mango,Color is Orange
3,Banana,Color is Yellow
This source diff could not be displayed because it is too large. You can view the blob instead.
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