Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 28 lines (24 sloc) 0.631 kB
#!/bin/bash
echo "****************************************"
echo "Copying files"
echo "****************************************"
cp ./js/*.js ../../src/yql/js/
wait
cd ../../src/yql/js/
wait
files=`ls *.js`
echo "****************************************"
echo "Processing files"
echo "****************************************"
for item in ${files[*]}
do
file="$item-bak"
cp $item $file
lines=`wc -l $file | awk '{print $1}'`
end=`expr $lines - 1`
sed -n "2, $end p" $file > $item
rm $file
done
echo "****************************************"
echo "Done.."
echo "****************************************"
Jump to Line
Something went wrong with that request. Please try again.