Below is the sample shell script for deleting apps from cloud foundry. This works in Windows machine but failing in Mac book. Can someone help on this?
#!/bin/bash
read -p "Enter your ID:" uid
echo
read -sp "Enter your password:" pwd
echo
cf login -a test.net -u $uid -p $pwd -o TEST1 -s Space1
file=test.txt
for i in `cat $file`
do
cf delete "$i" -f -r
done