Shell Scripting| Reading a file and processing based on it | WriteWithMe#2
Code used in Video:
#!/bin/bash
###################################
vfile=$1
for i in `cat ${vfile}|grep -v "^#"|awk -F ',' '{print $2}'`
do
echo "The fruit name is ${i}"
done
If you like please follow and comment
Post a Comment
Post a Comment