====== How to merge CSV files in the current directory ======
<code bash>
# set a variable to know if a file is the first one
# because we don't want to skip the head line from the first file
first=1
# for each of *.csv file names, assign it to i
for i in *.csv; do
# if you repeat this script
pt requires [[https://jqlang.github.io/jq/|jq]].
<file bash download_arcgis_rest_features.sh>
#!/bin/sh
... URL for an ArcGIS REST API
rest_url=$1
# output filename
output=$2
# prefix
prefix=$(echo $output | s... is infinite loop
while :; do
# generate a filename
fn=${prefix}_$offset.geojson
... err=$?
# if there was a wget error or the filesize is zero
if [ $err -ne 0 -o ! -s $fn ]
HuidaeCho/peakfq-linux|its GitHub repository]].
<file bash compile_peakfq.sh>
#!/bin/sh
# download sou... q
rm -rf PeakFQ_7.5.1.src
cd peakfq
# rename all filenames to lowercase
for i in *.*; do
j=$(echo $i ... done
# rename include and module names in source files to lowercase
for i in *.*; do
grep -q ".*.INC'... (1\) = -999)/!\1/' j407xe.for
# download missing files
for i in \
adwdm/cfbuff.inc \
adwdm/cdrloc.i
_610_Linux.zip
</code>
Uncompress the downloaded file.
<code bash>
mkdir -p ~/usr/local/opt
cd ~/usr/lo... Muncie.c04 b04
</code>
Did it run?
Delete extra files and directories.
<code bash>
cd ../..
rm -rf RAS