• 2 Votes
    8 Posts
    3k Views
    stacksofplatesS

    @flabbergastedFiltch said in Linux: Finding Files:

    Yea, Scott's reply led me to:

    find . -name "*\ " -print

    Not a big leap.

    Now I'm all the way down the rabbit hole of xargs, grep, and perhaps sed (?)

    Using FreeBSD on EMC Isilon.

    I have to do this a lot, but the creative way users name files is ever changing:
    filename.
    filename. [filename dot space]
    file*name

    Here's a sample of a real directory:

    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/HELVENEULIGCONOBL.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._HELVENEUBLA.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._TIMESEXTBOL.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._GILLSANBOL.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/GILLSANEXTBOL.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._HELVETICA.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/HELVETICANEUE3.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/HELVENEUHEACONOBL.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/HELVENEUULTLIG.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._HELVENEUROM.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._ZAPFDINGBATS.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._HELVEBOLOBL.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._HELVETICANEUE1.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._TIMESBOLITA.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/HELVETICANEUE2.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/HELVENEULIGCON.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/HELVENEUBLA.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._HELVENEUHEACON.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._HELVETICANEUECONDENSED3.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/GILLSANITA.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/HELVENEUMEDCONOBL.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._TIMESSEMITA.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/HELVENEUTHI.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._HELVETICANEUE3.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/TIMESBOLITA.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/HELVETICANEUE1.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/TIMESEXTBOL.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._HELVENEUHEACONOBL.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/HELVENEUHEAITA.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/ZAPFDINGBATS.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._HELVENEUULTLIG.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/HELVENEUBLAITA.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/HELVENEUMEDCON.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/GILLSANLIGITA.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._HELVENEUHEAITA.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._HELVENEUTHI.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._HELVENEUHEA.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._HELVENEUMEDCONOBL.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._HELVENEUBLAITA.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/HELVENEUHEA.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/HELVENEUTHIITA.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/HELVENEUMEDITA.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._HELVENEULIGITA.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._GILLSANITA.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._GILLSANEXTBOL.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._GILLSANBOLITA.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._HELVENEULIGCON.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/HELVENEULIGITA.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/TIMESSEMITA.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/HELVEBOLOBL.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._HELVENEUMEDCON.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._HELVENEUMEDITA.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._HELVENEUBOL.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._HELVENEUULTLIGITA.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/GILLSANLIG.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/HELVENEUULTLIGITA.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._GILLSANLIG.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/HELVENEUITA.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/HELVETICA.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/GILLSANBOLITA.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._HELVENEULIG.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/HELVENEUMED.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._GILLSANLIGITA.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/HELVENEUHEACON.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._HELVENEUMED.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._HELVETICANEUE2.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._HELVENEULIGCONOBL.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/GILLSANBOL.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._HELVENEUTHIITA.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/HELVETICANEUECONDENSED3.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/._HELVENEUITA.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/HELVENEUBOL.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/HELVENEULIG.
    ./WebUploads/FAMILYANDFRIENDS.1/b_Fonts/HELVENEUROM.

    One or Two files (even 10) and I'd use mv to rename the files and remove the space or period or add extension, etc... This list represents just one folder out of a few hundred that have some gremlin preventing Windows NT Backup (don't ask) from taking a backup and deleting the originals.

    Thanks for the reply and nudge. Now back to it after I change my Job Description on Linkedin to "Frustrated wannabe Software Developer".

    As much as I like giant one liners, the best tool for this would be rename.

    To remove a period just do

    find . -type f -exec rename "." "" {} \;

    You don't technically need to use find, but if the files span multiple directories it's easier.

  • 3 Votes
    1 Posts
    755 Views
    No one has replied
  • Meraki MX400 NAT Question

    34
    4 Votes
    34 Posts
    7k Views
    JaredBuschJ

    @scottalanmiller said in Meraki MX400 NAT Question:

    @dafyre said in Meraki MX400 NAT Question:

    The team that is there now are the ones that have to convince the bean counters of the need to change.

    It's a tiny cost though, right? We are only talking about a minuscule investment, I think. If it saves a few hours of effort, doesn't that cover the cost?

    No you are not. You are neglecting to add in the labor costs and only calculating on the hardware costs.

    Physically changing everything will add labor cost. Ordering, configuration, staging, installation.

    Yes, something else is cheaper. But not as cheap as you try to make it sound.

    The existing solution is in place and already paid for. A simple support call resolved the configuration issue. There is no reason to spend additional capital to change a working solution until you have to plan for new spend on the solution.

    If the existing solution was actually not functional, or some other factors were in play to offset things, then it would certainly be worth switching solutions.

  • This topic is deleted!

    1
    1 Votes
    1 Posts
    20 Views
    No one has replied
  • Protecting your business network

    25
    0 Votes
    25 Posts
    2k Views
    DashrenderD

    @scottalanmiller said in Protecting your business network:

    @Dashrender said in Protecting your business network:

    This problem does relate to the current IOT nightmare that exists in home networks (and sadly, many business ones too).

    The nightmare is that the production network does need access to the IOT network. An example is the Amazon Echo app. I think (though I haven't confirmed), you have to be on the same network to control the Echo. So even opening firewall ports probably won't work since the app finds the device via broadcasts and those of course wouldn't go to the other network normally. I'm not even sure there is a way to make a many to many solution for this type of problem.

    The issue is not IoT, though, just crappy products.

    Oh, you're absolutely right! Sadly - medical equipment has been shown to be a crappy product!

  • Port Forwarding to KVM Guest

    18
    0 Votes
    18 Posts
    4k Views
    A

    KVM Networking was set to NAT not Routed 😞

    I guess I am learning?........

  • Virtual Machines vs Containers

    27
    2 Votes
    27 Posts
    3k Views
    S

    @scottalanmiller Containers with some exceptions (ESXi Instant Clone, and Photon Fast Boot) are orders of magnitude faster to create than VM's.

    Containers running in a shared OS instance also can lower CPU overhead on the scheduler. Until recently Containers also sucked pretty bad at high IO activities (still not amazing, but a bit better).

  • Zimbra Security

    4
    0 Votes
    4 Posts
    563 Views
    scottalanmillerS

    @AlyRagab said in Zimbra Security:

    @scottalanmiller said in Zimbra Security:

    Seems like the Zimbra security would be redundancy at that point.

    so i can use the two ways at the same time?.

    Yes, it's a standard interface between them so you can have as many as you like. Although I'm unsure what the benefit would be unless they are completely different systems.

  • Linux preference - desktop

    15
    1 Votes
    15 Posts
    1k Views
    Reid CooperR

    I use Linux Mint here, still on 17.3 though.

  • Zabbix and Zimbra in Centos

    5
    0 Votes
    5 Posts
    2k Views
    scottalanmillerS

    Did you use my instructions for Zimbra with Apache on CentOS?

    https://mangolassi.it/topic/8344/installing-zimbra-email-8-6-on-centos-7

  • 2 Votes
    1 Posts
    1k Views
    No one has replied
  • What Linux Are You Running

    42
    1 Votes
    42 Posts
    5k Views
    bbigfordB

    @scottalanmiller said in What Linux Are You Running:

    CentOS is based on Fedora. But one is about long term support and one is about currency. If Fedora seems weird to you, so would Ubuntu as they both match a six month cycle. Fedora just has the long term support option of CentOS that Ubuntu lacks (they have the name, but not the product.)

    The advantage to Fedora or Ubuntu is in currency. Packages are updated every six months, everything from Node to the kernel. So you get new features much earlier. For example PHP7 is standard on Fedora for some time, but nowhere close for CentOS. If you are running modern web apps, like NextCloud, there are some pretty huge benefits from not getting outdated.

    Updating every six months instead of every several years (about three or four) means that updates are typically small and incremental rather than large and cumbersome. Updating becomes a normal process and newer security features are available too, just like new stability features. Suse takes this even farther with rolling updates.

    The idea behind LTS releases like CentOS is that you can stagnate on a platform and ignore it for a long time. This, of course, has value. But we aren't a stagnant company. We have active support and want the latest features and latest software. We aren't looking for vendors to blame, so long term lock ins to known platforms lacks the value that it might have in a slower moving company.

    Yeah, that makes sense.

  • I know you're not crazy...

    16
    3 Votes
    16 Posts
    1k Views
    stacksofplatesS

    @RamblingBiped said in I know you're not crazy...:

    We use Skype for Business as our primary means of communication within the company, and HipChat for inter-department communications for all things IT. We are going to be canning HipChat here in a couple of weeks when we move to Microsoft Teams

    HipChat is buggy and I don't recommend it to anyone; horrible unintuitive user experience. I'm not a Skype fan either, but that decision is outside of our sphere of influence so we have to deal with it. I'm hoping Microsoft Teams offers at least the same functionality as HipChat without the bugs. If that happens I'll be happy enough.

    Same. We have on premise skype for business. I never had a big problem with it, but it never wowed me with anything.

    It is nice how their status shows up in outlook though.

  • VFax on FreePBX?

    9
    6 Votes
    9 Posts
    2k Views
    rustcohleR

    Faxstation, formerly faxbochs or something of the sort, works flawlessly and gives companies exactly what they really want - the use of a fax machine.

    It takes the fax transmission locally, converts to a doc, sends to Sangoma servers then is manually faxes to the receiving party. And vice versa.

  • Windows Easy Transfer for Windows 10

    10
    1 Votes
    10 Posts
    2k Views
    Mike DavisM

    I've been using scanstate and loadstate from the Windows Automated Installation Kit to go from 7 to 10 and 10 to 10. I like it better than easy transfer because it's command line and scriptable.

  • 8 Votes
    54 Posts
    10k Views
    stacksofplatesS

    Ya with a preallocated qcow2 I can get pretty close to raw speeds. No one is going to notice 10MB/s or even 20 in normal settings.

  • 2 Votes
    51 Posts
    8k Views
    Reid CooperR

    Smart switches are cheaper than managed switches, normally by quite a bit. And they are way easier for a small business to manage as they normally just use a web browser or a simple utility instead of making you use expensive and complex central management tools for SNMP.

  • 1 Votes
    29 Posts
    4k Views
    Reid CooperR

    OBS is pretty much the industry standard. If you want, you could take its code and BE the official support for it. If your company does not want to do that, you could do it yourself. Or hire any third party to do that.

  • Best Software to backup to NAS automatically with versions/purging support?

    44
    1 Votes
    44 Posts
    5k Views
    Reid CooperR

    Did anyone mention CrashPlan?

    They have a free offering that should work.

  • 1 Votes
    3 Posts
    1k Views
    Reid CooperR

    First step - determine what it is that you want to be learning.