Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
locupe
mexec_exec
Commits
d70f8533
Commit
d70f8533
authored
5 years ago
by
Yvonne Firing
Browse files
Options
Download
Email Patches
Plain Diff
starting exec on gitlab
parents
Changes
42
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
0 deletions
+38
-0
vmadcp_movescript_150khz
vmadcp_movescript_150khz
+19
-0
vmadcp_movescript_75khz
vmadcp_movescript_75khz
+19
-0
No files found.
vmadcp_movescript_150khz
0 → 100755
View file @
d70f8533
#!/bin/csh -f
#
#foreach i (`ls rawdata/*JC32*`)
foreach i (`ls rawdata/*`)
#set num = `echo $i | awk -F'_' '{print substr($2,length($2)-2,3)}'`
# this extracts the file extension, e.g. for i = rawdata/D344os150001_000000.ENR, num is then set as ENR, ZBS 19.10.2009
set num = `echo $i | awk -F'.' '{print substr($1,length($1)-9,3)}'`
set movedir = rawdata{$num}
if (! -e $movedir) then
echo making $movedir
mkdir $movedir
endif
echo moving $i to $movedir
mv {$i} {$movedir}
end
This diff is collapsed.
Click to expand it.
vmadcp_movescript_75khz
0 → 100755
View file @
d70f8533
#!/bin/csh -f
#
#foreach i (`ls rawdata/*JC32*`)
foreach i (`ls rawdata/*`)
#set num = `echo $i | awk -F'_' '{print substr($2,length($2)-2,3)}'`
# this extracts the file extension, e.g. for i = rawdata/D344os150001_000000.ENR, num is then set as ENR, ZBS 19.10.2009
set num = `echo $i | awk -F'.' '{print substr($1,length($1)-9,3)}'`
set movedir = rawdata{$num}
if (! -e $movedir) then
echo making $movedir
mkdir $movedir
endif
echo moving $i to $movedir
mv {$i} {$movedir}
end
This diff is collapsed.
Click to expand it.
Prev
1
2
3
Next
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