#!/bin/bash
for dir in /home/username/git/*/
do
for file in "$dir"/*
do
if [[ -f $file ]]
then
echo "$file"
fi
done
done
当我尝试运行它时。我有
syntax error near unexpected toke' `do
'rocTest.sh: line 3: `do
为什么?