Skip to content

Conversation

@pinelli
Copy link

@pinelli pinelli commented Jun 12, 2018

No description provided.

echo "Hello, $1!"
else
echo "Hello, World!"
fi
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved

@@ -0,0 +1,17 @@
#!/bin/bash
ls_out=$(ls -R | xargs -n1)
echo "$ls_out" > .assist
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do it without assist file creation, solution of this ex is more easy than your, one cycle and only one var

if [ -z $1 ]; then
exit 1
fi
touch .f
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same, do it without file creation

#!/usr/bin/bash
if [ -z $1 ] || [ -z $2 ]; then
exit 1
fi
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again please do it without file creation

*)
;;
esac
echo "$res"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved

eval "$com $i"
done
}

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved

echo "$res"
else
echo ""
fi
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test on 0 lines returns error and Test on 2 lines return empty string tests are failed

grep -Po '(^|\t)[A-Za-z0-9\.]+@[A-Za-z0-9\.]+\.[A-Za-z0-9\.]+' $2
else
exit 1
fi
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved

for i in $@
do
echo "$(awk 'END{print NR}' $i) $i"
done
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved

ten=$(grep -o "9" resources/digitfile.txt | wc -l)" nines"

echo $zer, $ones, $twos, $th, $ft, $fif, $six, $sev, $nin, $ten

Copy link
Owner

@vpetrusenko vpetrusenko Jun 21, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants