Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Mini-TIP] Compresser des dossiers avec ROX-Filer
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
lowang_19
n00b
n00b


Joined: 28 Oct 2005
Posts: 66

PostPosted: Tue Jan 30, 2007 10:38 pm    Post subject: [Mini-TIP] Compresser des dossiers avec ROX-Filer Reply with quote

J'utilise beaucoup Rox-Filer, et il est souvent fastidieux d'ouvrir un terminal pour compresser un dossier.
En faisant:

  • clic droit sur le dossier
  • envoyer à...
  • personaliser

On fait apparaitre le dossier ~/.config/rox.sourceforge.net/SendTo
Créer un fichier nommé zip.sh et y copier ceci:
Code:
#!/bin/bash

DIRNAME="$(dirname $@)"
FILENAME="$(basename $@)"
cd "$DIRNAME"
zip -r "${FILENAME}.zip" ./${FILENAME}


ne pas oublier le célèbre:
Code:
chmod +x zip.sh


et ensuite,

  • clic droit sur le dossier
  • envoyer à...
  • zip.sh


et voila! On peut créer un autre script pour tar.gz ou autre...
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Tue Jan 30, 2007 11:43 pm    Post subject: Reply with quote

on peut même faire mieu :)

[TIP]create,list, or extract archives
si tu suis tout tu pourras décompresser, créer des archives, etmême lister leur contenus :)
_________________
The End of the Internet!
Back to top
View user's profile Send private message
lowang_19
n00b
n00b


Joined: 28 Oct 2005
Posts: 66

PostPosted: Tue Jan 30, 2007 11:47 pm    Post subject: Reply with quote

woops, désolé je n'avais pas vu ce thread... :oops:
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Tue Jan 30, 2007 11:49 pm    Post subject: Reply with quote

bah non pas désolé, c'set bien:) t'as ressenti le même besoin, et voila, t'as agi :)
C'était juste histoire de refaire "monter" un de mes posts:) (même si en vrai il n'a pas bougé... :lol: )


Par contre, je suis tout ouïe si tu as des commentaires:)
_________________
The End of the Internet!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French 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