Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
In_lab2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abhijeet Pratap
In_lab2
Commits
94d60d9d
You need to sign in or sign up before continuing.
Commit
94d60d9d
authored
Aug 26, 2020
by
Abhijeet Pratap
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upload
parents
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
0 deletions
+31
-0
q1.sh
q1.sh
+6
-0
q2.sh
q2.sh
+4
-0
q3.sh
q3.sh
+14
-0
readme.txt
readme.txt
+7
-0
No files found.
q1.sh
0 → 100644
View file @
94d60d9d
#!/bin/bash
read
n
sum
=
$((
$n
*
(
$n
+
1
)*(
2
*(
$n
)
+
1
)/
6
))
echo
$sum
q2.sh
0 → 100644
View file @
94d60d9d
#!/bin/bash
n
=
$(
find
$*
-type
d |
wc
-w
)
echo
$((
n-1
))
q3.sh
0 → 100644
View file @
94d60d9d
#!/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
readme.txt
0 → 100644
View file @
94d60d9d
Each member have equally contributed to the project.
Refrences:
a)https://github.github.com/training-kit/downloads/github-git-cheat-sheet.pdf
b)https://devhints.io/bash
c)Took help from google when we got confuse about.
GIT aDDRRESS :
https://git.cse.iitb.ac.in/aaybachelor/inLab2/new/master
Write
Preview
Markdown
is supported
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