Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wie fehelnde Dateien bei vortlaufender nummerierung anzeigen
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
SarahS93
l33t
l33t


Joined: 21 Nov 2013
Posts: 693

PostPosted: Wed Mar 05, 2014 2:31 pm    Post subject: Wie fehelnde Dateien bei vortlaufender nummerierung anzeigen Reply with quote

In einem Verzeichnis sollten Dateien sein die z.B. so heissen:
xyz.part01.abc
xyz.part02.abc
xyz.part03.abc
xyz.part04.abc
xyz.part05.abc
xyz.part06.abc
xyz.part07.abc
xyz.part08.abc
xyz.part09.abc
xyz.part10.abc

Da sind jetzt aber nur die Dateien
xyz.part01.abc
xyz.part03.abc
xyz.part04.abc
xyz.part06.abc
xyz.part07.abc
xyz.part10.abc

Wie kann angezeigt werden das die Dateien
*.part01.*
*.part02.*
*.part05.*
*.part08.*
*.part09.*
fehlen?
Back to top
View user's profile Send private message
Christian99
Veteran
Veteran


Joined: 28 May 2009
Posts: 1668

PostPosted: Wed Mar 05, 2014 3:17 pm    Post subject: Reply with quote

Code:
for i in $( seq -w 1 10 ) ; do [ -e abc.part$i.xyz ] || echo "abc.part$i.xyz fehlt" ; done
Back to top
View user's profile Send private message
SarahS93
l33t
l33t


Joined: 21 Nov 2013
Posts: 693

PostPosted: Wed Mar 05, 2014 4:08 pm    Post subject: Reply with quote

WOW
danke, das funtkioniert super!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum