Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Fidel Alfaro Almagro
UK_biobank_pipeline_v_1.5
Commits
f7eb116f
Commit
f7eb116f
authored
Sep 20, 2021
by
Fidel Alfaro Almagro
Browse files
Add new file
parent
10a46e10
Changes
1
Hide whitespace changes
Inline
Side-by-side
bb_general_tools/generate_NaNs
0 → 100644
View file @
f7eb116f
#!/bin/bash
#################################################
# #
# Script to generate a string of NaNs. #
# Arguments: #
# $1) Number of NaNs to generate #
# $2) Initial value of the string (Optional) #
# #
# Written by Fidel Alfaro Almagro #
# #
#################################################
num_NaNs
=
"
$1
"
if
[
"
$2
"
==
""
]
;
then
result
=
""
else
result
=
"
$2
"
fi
for
((
i
=
0
;
i<
$num_NaNs
;
i ++
))
;
do
result
=
"
$result
NaN"
done
echo
$result
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