plugin:ckgedit:compress.sh
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:ckgedit:compress.sh [2017-07-27 20:04] – [Usage:] turnermm | plugin:ckgedit:compress.sh [2020-01-14 15:06] (current) – turnermm | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Compressing Files ====== | ||
+ | |||
[[plugin: | [[plugin: | ||
Line 8: | Line 10: | ||
then | then | ||
OUT=$2 | OUT=$2 | ||
+ | EXTENSION=` echo $1 | awk -F. '{ print $2 }' ` | ||
else | else | ||
BASENAME=` echo $1 | awk -F. '{ print $1 }' ` | BASENAME=` echo $1 | awk -F. '{ print $1 }' ` | ||
Line 19: | Line 22: | ||
</ | </ | ||
- | This script will compress both .js and .css files. | + | This script will compress both .js and .css files. The script picks up the type of file to be compressed from the file's extension. |
==== Usage: ==== | ==== Usage: ==== | ||
- | | + | |
- | | + | |
- | The result | + | - '' |
+ | |||
+ | The first two forms will produce a file named '' |
plugin/ckgedit/compress.sh.1501178640.txt.gz · Last modified: 2017-07-27 20:04 by turnermm