TechUniverse.net

tech talk

Linux: Renaming Multiple Files Recursively

Have you ever inadvertently created multiple files containing “?”, “:” or “|” or any other file names with special chars? Imagine they are everywhere in the current path (in sub folders) within a given path and you want a quick way of renaming those files.

Well, after a bit of searching, reading and testing, I finally found an easy way to do it.

Let’s say you want to replace the “?” with an “_” in any file’s name in the current path (recursively). What would the command be?

Consider this – these are a bunch of files I deliberately created in this way:

    ./My ? File 2
    ./My ? File 1
    ./My Folder
    ./My Folder/My ? File

Then, I ran:

    $ find . -name '*\?*' -exec bash -c 'echo mv $0 ${0/\?/_}' \"{}\" \;

Pay attention to the “\” char before the “?”. That’s the escape char.

Let’s see what happens when you run the command:

    $ find . -name '*\?*' -exec bash -c 'echo mv $0 ${0/\?/_}' \"{}\" \;
        mv "./My ? File 2" "./My _ File 2"
        mv "./My ? File 1" "./My _ File 1"
        mv "./My Folder/My ? File" "./My Folder/My _ File"

Then just select the entire output of that command and copy paste it to your terminal:

    $ mv "./My ? File 2" "./My _ File 2"
    $ mv "./My ? File 1" "./My _ File 1"
    $ mv "./My Folder/My ? File" "./My Folder/My _ File"

It works great. This can also be modified so that the entire procedure works with a single step like this:

    $ (find . -name '*\?*' -exec bash -c 'echo mv $0 ${0/\?/_}' \"{}\" \;) | bash

Pretty cool isn’t it? 🙂

Trinity Desktop Environment R14.0.2 Released

TDE has reached R14.02. If you are looking for XP like experience (and even W7) then TDE is for you. There is even a Quick Launch that actually works with full Drag&Drop support.

The Trinity Desktop Environment (TDE) development team is pleased to announce the immediate availability of the new TDE R14.0.2 release. The Trinity Desktop Environment is a complete software desktop environment designed for Unix-like operating systems, intended for computer users preferring a traditional desktop model, and is free/libre software.

R14.0.2 is the second maintenance release of the R14.0 series, and is built on and improves the previous R14.0.1 version. Maintenance releases are intended to promptly bring bug fixes to users, while preserving overall stability through the avoidance of both new features and major codebase re-factoring.

R14.0.2 Release Notes
This section highlights some of the most important fixes introduced by this release
* Fixed installation/logon problem when installed in systems with Unity and Gnome (see here for more details)
* Added support for Ubuntu 15.10 – Wily
* Added ports of some applications for FreeBSD
* Added support for XDG_SESSION_DESKTOP and XDG_CURRENT_DESKTOP in TDM.
* This improves coexistence with other desktop environments
* Added subversion 1.9 support

The complete list of bugs fixed in this release is available here.

A detailed commit change log is also available here.

 

Read more at: http://trinitydesktop.org/

Trinity Desktop Environment R14.0.1 Released

My favorite desktop environment for Linux, Trinity Desktop Environment has reached R14.0.1.

Below is a part of the original announcement. Those screenshots I have posted in my earlier posts are not the default TDE look. It is how I have customized it. Visit their web site: http://trinitydesktop.org/ for more screenshots. My customized version is installed on top of Ubuntu 15.04.

The Trinity Desktop Environment (TDE) development team is pleased to announce the immediate availability of the new TDE R14.0.1 release. The Trinity Desktop Environment is a complete software desktop environment designed for Unix-like operating systems, intended for computer users preferring a traditional desktop model, and is free/libre software.

R14.0.1 is the first maintenance release of the R14.0 series, and is the result of several months of ongoing effort by the TDE development team. Maintenance releases are intended to promptly bring bug fixes to users, while preserving overall stability through the avoidance of both new features and major codebase re-factoring.

R14.0.1 Release Notes
This section highlights some of the most important fixes introduced by this release
* Added support for Ubuntu Vivid 15.04
* Added initial support for FreeBSD
* Added support for ARM64 and PowerPC64le
* Konqueror file filtering now works correctly
* TDE session manager crashes should no longer be experienced
* KHelpcenter incorrectly displayed content is now visualized correctly
* Incorrect window transparency with TDE Compton has been eliminated
* Incorrect circular dependency in Debian/Ubuntu packages has been resolved
* TDEFileReplace no longer hangs/crashes when circular links are encountered
* TDENetworkManager no longer crashes if an interace is removed
* TDENetworkManager no longer hangs on point-to-point connections
* TDevelop cmake template projects now builds correctly
* Digikam slideshow no longer hangs
* Several qt3/tqt3 security alerts have been fixed
* Several FTBFS has been addressed
* KDesktop no longer hangs on startup
* KMail no longer crashes if closed in offline mode
* KSquirrel can load codecs – works again

The complete list of bugs fixed in this release is available here.

A detailed commit change log is also available here.

My Linux Desktop – Update

snapshot1snapshot2

Above are screenshots showing some of my favorite Windows apps running on Linux on a Windows-like UI (Trinity Desktop Environment, based on KDE 3.x). Let the screenshot do the talking.

The Quick Launch on the left corner next to the “T” button behaves like the real Quick Launch – you can re-arrange icons by dragging the mouse while holding the left mouse button and you can drop icons directly from pretty much any GUI toolkit and even URLs. TDE is by far the most logical and the most functional desktop environment for Linux to date. Very professional looking. Get Trinity Desktop Environment from: http://trinitydesktop.org and donate to the Trinity Desktop Environment and WINE projects! When accompanied with WINE, you get one great desktop! Keep up the good work guys!

About WINE, I’ve also tried WinSCP and it seems to work. I’ve tried UltraISO and that too seems to work but I haven’t fully tested it.

My Linux Desktop – Trinity Desktop Environment

Take a look at the screenshot below. Can you tell which ones are Linux native and which are running through WINE?

trinity_desktop_environment

The window titled “Document2 – Writer” is a native Linux application developed with Qt. The other 3 are Windows applications running through WINE. I am sure you are quite familiar with all of them. The desktop environment is “Trinity Desktop Environment” – the world’s best desktop environment. Very professional looking.

Get Trinity Desktop Environment at: http://trinitydesktop.org.

Advanced Network Configurator Beta 10 Updates

For the last few days I have been working on implementing “On-Demand Updates” — accessible from the context menu. So with Beta 10, on the context menu, you will now have an entry called “Check for Updates“. The function will check, download and apply any updates available automatically for you. The process is completely automated. All you have to do is confirm you want to check for update and confirm you want the updates applied if any. During the update process, old versions of the newly downloaded files will be moved to anc.old sub folder in the Advanced Network Configurator folder so if in case you have any issues with the new versions, you can always revert back.

I know that just because something is newer, it doesn’t mean it’s better! I mean, look at that memory leak I recently fixed! Also, don’t worry, automatic update checks will be turned off by default and always will be unless you otherwise say so but currently you won’t have an option to automatically check for updates on start up. When the “Check for updates on Start Up” option is implemented, it will be turned off by default.

Advanced Network Configurator 1.0 Beta 9 Released

A *major* *major* *major* release! Please update!

  • Fixed a HUGE memory leak that caught me by surprise – please update
  • Added Auto-detection of newly inserted and removed network cards (such as USB Ethernet adapters).
  • Fixed: ANC will show up all squashed when shown via its notification icon
  • Added an “Interface Index” indicator on the Profile View’s status bar

If you’ve been using a previous version before, you’ll need to update just because of the memory leak. I am very and truly sorry about it. A very silly error in code.

Both issues resolved – Build 01 is on its way

Just a few more tweaks…That second one was a bit of a challenge and I had to mess with the core functionality. I can’t believe I missed that!

There is some better news however 🙂 ANC now acts a bit like a Device Manager! If you remove a network card (such as a USB one), the network interface representation in ANC automatically disappears (as in Device Manager) but it will not get automatically re-added. For that, you’ll have to restart the software. I will work on this part in Beta 9! For now, I just want to make sure you use a non-buggy software.

Two Issues Detected

Ok, after I released that Beta 8 Build 00, I’ve detected two problems I did “not” pick up at the time I built the package.

  • If ANC is expanded and you minimize it, the next time you restore it from the sys tray, the width goes all wonky.
  • If you remove a network card while ANC is running, ANC will crash (what a silly error…). Now you might be asking, when would you remove a network card while the system is running? You will if you have one of those USB network adapters.

Well, I better do something about these two.

Advanced Network Configurator 1.0 Beta 8 Released

After about two weeks, I have completed the new Beta 8 release and below I have included the change log:

  • Added a programmer oriented RS-232/Serial Data Terminal with ASCII, HEX and BIN capabilities
  • Added a TCP Server with a Console with ASCII, HEX and BIN capabilities
  • Created a new tab called “Consoles” and moved TCP Client, TCP Server and RS-232/Serial data terminals there
  • Improved horizontal resizing
  • Fixed: If main window got expanded while located at the edge of the screen, the dialog expanded past the viewing area
  • Fixed: Pasting bug in TCP Client and some other negligible bugs
  • Fixed: Sometimes TCP Client would not recognize the server had closed the connection – this should be fixed now
  • Fixed: Re-arranged tab positions not getting restored on next launch (if moved)
  • Fixed: Width not getting restored on next launch (when session exited in Expanded Mode)
  • Relocated Net Tools to the Expanded Section
  • Fixed: Some theme errors

Keep checking this site frequently. I have a tendency to upload mini updates after major beta releases such as this. These updates fix little things I might have missed during the official release. If you find something annoying or not working as it should, please let me know.

Of course, Beta 8 official screenshot:

anc_beta_08

Advanced Network Configurator has come a long way since its first Beta 1 release. As you can see I have moved past the point of simple profiles and I am trying to really make this a great tool. Keep checking this site for full progress and Beta 9 updates.

TechUniverse.net © 2014 Based on Frontier Theme | Modified by Sasko Usinov | About | Contact