-
Notifications
You must be signed in to change notification settings - Fork 0
Bash completed #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Please stash everything into one commit |
| echo "Hello, $1!" | ||
| else | ||
| echo "Hello, World!" | ||
| fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved
| for i in $str | ||
| do | ||
| ls -R | grep -Fi $i || echo "the searched PATH is unexisting" | ||
| done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved
| awk -F: '{print $1}' .f | ||
| done | ||
| rm .f | ||
| fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do it without file creation
| fi | ||
|
|
||
| echo $2 | cut -d'/' -f 2 | ||
| grep -in $1 $2 | cut -d : -f 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No args and Without first arg tests are failed
| summ=$(echo $(( "$summ / $#" ))) | ||
| fi | ||
|
|
||
| echo "$summ" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two flags input test are failed, also please rewrite it with switch statement
|
|
||
| if [ $1 ]; then | ||
| map $@ | ||
| fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved
| echo "$answer" | ||
| else | ||
| echo '' | ||
| fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved
| grep -Po '(^|\t)[A-Za-z0-9\.]+@[A-Za-z0-9\.]+\.[A-Za-z0-9\.]+' $2 | ||
| else | ||
| exit 1 | ||
| fi |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved
| answer+=$(grep -o "$i" $1 | wc -l) | ||
| answer+=" ${words[$i]}, " | ||
| done | ||
| echo "$answer" | sed 's/..$//' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved
No description provided.