Commit f7eb116f authored by Fidel Alfaro Almagro's avatar Fidel Alfaro Almagro
Browse files

Add new file

parent 10a46e10
#!/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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment