[SOLVED] How to extract all xzm files to one folder only
- Blaze
- DEV Team
- Posts: 3993
- Joined: 28 Dec 2010, 11:31
- Distribution: ⟰ Porteus current ☯ all DEs ☯
- Location: ☭ Russian Federation, Lipetsk region, Dankov
- Contact:
[SOLVED] How to extract all xzm files to one folder only
Anybody knows how to extract all xzm files to one folder only?
For example, I have 1st.xzm, 2nd.xzm, 3rd.xzm and 1 folder.
I want extract all zxm files to this folder.
xzm2dir *.xzm folder
does not wotk.
For example, I have 1st.xzm, 2nd.xzm, 3rd.xzm and 1 folder.
I want extract all zxm files to this folder.
xzm2dir *.xzm folder
does not wotk.
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
How to extract all xzm files to one folder only
Hi Blaze,
I'm using this script:
It unpacks all modules even if they are placed in subfolders.
I'm using this script:
Code: Select all
#!/bin/sh
cd `pwd`
for x in `find -type f | fgrep .xzm | sort`; do unsquashfs -n -f $x >/dev/null; done
Please add [Solved] to your thread title if the solution was found.
- wread
- Module Guard
- Posts: 1257
- Joined: 09 Jan 2011, 18:48
- Distribution: Porteus v5.0-kde-64 bits
- Location: Santo Domingo
- Contact:
How to extract all xzm files to one folder only
Great!
One can patch 05-devel mit /usr/bin/extractxzms by fanthom!

One can patch 05-devel mit /usr/bin/extractxzms by fanthom!

Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!
The Porteus Community never sleeps!
- ncmprhnsbl
- DEV Team
- Posts: 4253
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
How to extract all xzm files to one folder only
i've been using (from the folder of xzms):
what fanthom has is better tho(for the sub folders bit)
Code: Select all
for a in *.xzm; do xzm2dir $a /path/to/directory; done
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44
- Blaze
- DEV Team
- Posts: 3993
- Joined: 28 Dec 2010, 11:31
- Distribution: ⟰ Porteus current ☯ all DEs ☯
- Location: ☭ Russian Federation, Lipetsk region, Dankov
- Contact:
How to extract all xzm files to one folder only
Wow, this is what I need.
It's save me a lot of time.
Thanks.
It's save me a lot of time.
Thanks.
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
- Ed_P
- Contributor
- Posts: 8908
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
[SOLVED] How to extract all xzm files to one folder only
Excuse my ignorance fanthom but what is the pwd directory?
- wread
- Module Guard
- Posts: 1257
- Joined: 09 Jan 2011, 18:48
- Distribution: Porteus v5.0-kde-64 bits
- Location: Santo Domingo
- Contact:
[SOLVED] How to extract all xzm files to one folder only
pwd=print (name of) working directory
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!
The Porteus Community never sleeps!
- Ed_P
- Contributor
- Posts: 8908
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
[SOLVED] How to extract all xzm files to one folder only
^ Really!!
Thank you wread

Thank you wread
- Blaze
- DEV Team
- Posts: 3993
- Joined: 28 Dec 2010, 11:31
- Distribution: ⟰ Porteus current ☯ all DEs ☯
- Location: ☭ Russian Federation, Lipetsk region, Dankov
- Contact:
[SOLVED] How to extract all xzm files to one folder only
The same in current directoryfanthom wrote: ↑03 Sep 2017, 11:20Code: Select all
#!/bin/sh cd `pwd` for x in `find -type f | fgrep .xzm | sort`; do unsquashfs -n -f $x >/dev/null; done
Code: Select all
for x in `find . -type f | fgrep .xzm | sort`; do unsquashfs -n -f $x >/dev/null; done
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16