Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
multicat
Commits
4bbf4303
Commit
4bbf4303
authored
Mar 08, 2013
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ls -f is not portable (spotted by Benjamin Cohen)
parent
ef6fd5fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
multicat_expire.sh
multicat_expire.sh
+1
-1
No files found.
multicat_expire.sh
View file @
4bbf4303
...
...
@@ -35,7 +35,7 @@ DIR=$1
WANTED_CHUNKS
=
$2
cd
"
$DIR
"
NB_CHUNKS
=
`
ls
-
f
*
.ts |
wc
-l
`
NB_CHUNKS
=
`
ls
-
a
-1
*
.ts |
wc
-l
`
if
test
$NB_CHUNKS
-gt
$WANTED_CHUNKS
;
then
ls
-t
*
.ts |
tail
-n
$((
$WANTED_CHUNKS
-
$NB_CHUNKS
))
|
cut
-d
.
-f
1 | xargs
-I
FILE sh
-c
"rm FILE.ts FILE.aux*"
...
...
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