Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tutscripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tutorierende
tutscripts
Merge requests
!4
fucopy: Allow multiple patterns
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fucopy: Allow multiple patterns
jonahbeneb02/tutorscripts:fucopy-multiple
into
main
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
jonahbeneb02
requested to merge
jonahbeneb02/tutorscripts:fucopy-multiple
into
main
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
cc57f3e9
1 commit,
2 years ago
1 file
+
7
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
fucopy.sh
+
7
−
5
Options
#! /bin/sh
if
[
$#
-
ne
1
]
||
[
!
-f
'grades.csv'
]
;
then
if
[
$#
-
lt
1
]
||
[
!
-f
'grades.csv'
]
;
then
printf
"Usage: %s <pattern>
\n
"
$(
basename
$0
)
>
&2
printf
"Supply a pattern matching files to be copied, e.g. '*.pdf'
\n
"
>
&2
printf
"Execute within the directory containing 'grades.csv'
\n
"
>
&2
exit
1
fi
pattern
=
$
1
pattern
s
=
$
@
find
\
-wholename
"*/Submission attachment(s)/
$pattern
"
\
-execdir
cp
{}
'../Feedback Attachment(s)'
\;
for
pattern
in
$patterns
;
do
find
\
-wholename
"*/Submission attachment(s)/
$pattern
"
\
-execdir
cp
{}
'../Feedback Attachment(s)'
\;
done
Loading