Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Olena
olena
Commits
8293184f
Commit
8293184f
authored
Mar 17, 2010
by
Roland Levillain
Browse files
Have split_sample.sh announce the right number of output files.
* doc/tools/split_sample.sh: Here.
parent
6b0e5460
Changes
2
Hide whitespace changes
Inline
Side-by-side
milena/ChangeLog
View file @
8293184f
2010-03-17 Roland Levillain <roland@lrde.epita.fr>
Have split_sample.sh announce the right number of output files.
* doc/tools/split_sample.sh: Here.
2010-03-17 Roland Levillain <roland@lrde.epita.fr>
Fix programs in doc/examples/.
milena/doc/tools/split_sample.sh
View file @
8293184f
...
...
@@ -13,8 +13,9 @@ if ! [ -z "$3" ]; then
fi
split
=
false
i
=
1
i
=
0
for
begin
in
$begins
;
do
i
=
$((
i+1
))
partend
=
$((
`
echo
$ends
|
cut
-d
' '
-f
$i
`
-
1
))
subdir
=
`
basename
\`
dirname
$1
\`
`
out_name
=
"
`
basename
$1
.
$2
`
-
$i
.
$2$suffix
"
...
...
@@ -22,7 +23,6 @@ for begin in $begins; do
out_name
=
"
${
subdir
}
_
$out_name
"
fi
head
-n
$partend
$1
|
tail
-n
$((
$partend
-
$begin
))
>
"
$4
/
$out_name
"
i
=
$((
i+1
))
split
=
true
done
...
...
Write
Preview
Supports
Markdown
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