Commit 61e0e8d0 authored by Ayush's avatar Ayush

Upload new file

parent 63ab7de0
#!/bin/bash
file_name=$(<$*)
IFS=' '
read -a num_array_sorted <<< "$file_name"
for values in "${num_array_sorted[@]}";
do
if [[ "$values" == *"5"* ]]; then
echo $values >> q3_out.txt
fi
done | sort
Markdown is supported
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