Lines Matching refs:file
52 for file in $files; do
53 if [ -f $1/$file ]; then
54 printf "$file:"
56 local rfile=$(ls -l $1/$file | awk '$1 ~ /^.*r.*/ { print $NF; }')
59 cat $1/$file
61 printf "$file is not readable\n"
65 read_cpufreq_files_in_dir "$1/$file"
91 for file in $files; do
92 if [ -f $1/$file ]; then
94 local rwfile=$(ls -l $1/$file | awk '$1 ~ /^.*rw.*/ { print $NF; }')
99 if [ $file != "scaling_setspeed" ]; then
100 local val=$(cat $1/$file)
101 printf "Writing $val to: $file\n"
102 echo $val > $1/$file
107 update_cpufreq_files_in_dir "$1/$file"