Skip to content
Snippets Groups Projects
Commit ff5c3c4d authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

less verbose script

parent 49740443
No related branches found
No related tags found
1 merge request!6Resolve "license headers"
This commit is part of merge request !6. Comments created here will be created in the context of that merge request.
......@@ -103,12 +103,10 @@ if [ $mode == "update" ]; then
echo " Removing license header from file ${i}"
line_start="$(grep -wn $line_start_mark ${i} | head -n 1 | cut -d: -f1)"
line_end="$(grep -wn $line_end_mark ${i} | head -n 1 | cut -d: -f1)"
echo ${line_start}
echo ${line_end}
#echo "${line_start},${line_end}d" $i
#sed $('${line_start},${line_end}d)' $i
#echo ${line_start}
#echo ${line_end}
awk -v m=$line_start -v n=$line_end 'm <= NR && NR <= n {next} {print}' $i > tmpfile && mv tmpfile $i
cat $i
#cat $i
fi
done
#TODO
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment