Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CAL
Distant Visualization
Commits
f109736c
Commit
f109736c
authored
Nov 10, 2018
by
Schopieray, Scott
Browse files
create csv with y=100
parent
0c42b8c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
createcsv_y100.sh
0 → 100644
View file @
f109736c
#!/bin/bash
# this script generates a csv file for with a filename, increasing number from 1, and random number between 1 and 50
# Script written by College of Arts and Letters at Michigan State University http://edtech.cal.msu.edu/
echo
>
output.csv
count
=
1
YSCALE
=
100
find
*
-maxdepth
0
-name
"*.jpg"
-print0
|
\
(
while
read
-d
$'
\0
'
i
;
do
echo
\"
$i
\"
,
\"
$(
echo
$i
|
sed
-e
s/[^0-9]//g
)
\"
,
\"
$((
$RANDOM
%
$YSCALE
))
\"
>>
output.csv
;
count
=
$((
count+1
))
;
done
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment