LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Puppy
User Name
Password
Puppy This forum is for the discussion of Puppy Linux.

Notices

Reply
 
Search this Thread
Old 06-09-2014, 07:32 PM   #1
Fixit7
Member
 
Registered: Mar 2014
Posts: 159

Rep: Reputation: 0
Compress .html and all associated files


I have tried both of these, but they don't work right.

Using Thunar.

I want to select an .html file and the files in another directory which belong to it and have them all compressed in a zip file.

Code:
zip test.zip %N

zip test.zip %F %D
 
Old 06-11-2014, 06:11 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,801

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
You might need to explain what you want to accomplish in a little more detail.
What does %N, %F and %D supposed to represent? How many files etc are you needing to zip?

zip test.zip file1.html /dir1/file2 /dir/file2
 
Old 06-11-2014, 09:23 AM   #3
Fixit7
Member
 
Registered: Mar 2014
Posts: 159

Original Poster
Rep: Reputation: 0
%f the path to the 1st selected file
%F the paths to all selected files
%d directory containing the file that is passed in %f
&D Directories containing the files that are passed in %F
%n the first selected filename (without path)
%N the selected filenames (without paths)
 
Old 06-12-2014, 02:25 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,801

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Did you create a custom action?
 
Old 06-12-2014, 05:39 PM   #5
Fixit7
Member
 
Registered: Mar 2014
Posts: 159

Original Poster
Rep: Reputation: 0
This works.
Code:
zip -r test.zip %F
I also installed Packit which is a fine program.

I was impressed that it asked if I wanted a shortcut on my desktop.
That's rare with Linux programs.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Is there a graphical browser which will read local compressed html files (html.gz) ? harryhaller Linux - Software 2 02-18-2014 09:54 AM
Compress directories or files without one ? mesuutt Linux - General 3 08-20-2011 02:38 AM
Merge Of Html Files Into A Single Html (or Pdf) fiomba Linux - Software 6 06-20-2011 07:28 PM
compress files in OpenVMS sindebad73 General 6 02-01-2011 10:38 AM
Compress Files mikeshn Programming 5 06-04-2003 12:25 AM


All times are GMT -5. The time now is 11:49 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration