I'm trying to run join a bunch of files using the find command.  I have determined that filenames containing spaces are giving me a problem.  The following comand works for files that do not contain any spaces but fails when the filename contains a space.    find /media/primary/acronis_ntfs/flickr_01/. -type f -name '*.*' | xargs cat &gt; /media/primary/acronis_ntfs/flickr_01.txt   I have tried different commands as well - all with the same results.    find /media/primary/acronis_ntfs/flickr_01/. -type f | xargs cat &gt; /media/primary/acronis_ntfs/flickr_01.txt   If I go directly into the folder and run    cat * &gt; flickr_01.txt   It works - spaces and all.  I'm running ubuntu 16.10.  Any suggestions?  I'm losing my hair over something I thought is simple.
This question is inspired by    I see these constructs  for file in `find . -type f -name ...`; do smth with ${file}; done   and  for dir in $(find . -type d -name ...); do smth with ${dir}; done   being used here almost on a daily basis even if some people take the time to comment on those posts explaining why this kind of stuff should be avoided... Seeing the number of such posts (and the fact that sometimes those comments are simply ignored) I thought I might as well ask a question:  Why is looping over find's output bad practice and what's the proper way to run one or more commands for each file name/path returned by find ?
I am using Ubuntu 11.10 (64 bits) and I do not want to mount automatically USB thumb drives in my system. I tried the command dconf-editor and gconf-editor but there isn't the icon to disable it in nautilus preferences (apps|nautilus|preferences|media_automount).  Thanks. How to assign the result of the previous expression to a variable? Whenever I try to get somebody to follow me in Skyrim they something in the lives with "You already have a follower.". The problem is, I don't.   I have not, to my recollection, had a follower at any given point in the game.  The only thing I can think of is that I have (spoiler)      finished Anriel's Endeavors and gotten him as a summon creature.    Or do I have a hidden follower that I can't remember. A dog or a horse perhaps? Note that I do not have a dog or horse following me now. I talked to dog once, and had a horse that died.  Is this a common/known issue? Is there a work around?  Any tips? I have a Student object and have a pick list field  "Student Status" in this object. Status can be Full-Time OR Part Time. Now my requirement is i want this student status list, Part-Time or Full-Time in apex controller. how can i do this?  If i get a student record it will only give me that particular student status Full-Time or Part-Time. But i need all options that are available in student status field.  Please help me Let me edit a post in the close review, then vote to close it I think we need a button that says Edit and Close added to the Review Close button options.  Many of these closed posts will be around forever (and should be, closed should not just be a path to deletion), so they need editing.  If I edit it now it goes away, with the only option being a back click to get back to the review, and then click into the post and edit it.  We have an Edit and Reopen button, so this would fit in just fine. I have a large number of zip files that were compressed using the zip command. I would like to recompress them with the -9 flag to improve the compression ratio. Does anyone know if that can be done without manually decompressing and then compressing.  PS. I need to keep them as zip files since they are served to windows users( and as such have white spaces in their names) Configuring dpkg stops processing when calling an HTTP request to Adobe Flash Player Add Windows 10 to GRUB OS list I am looking for an easy way to create in Illustrator vintage style corners like on the picture provided.  I have some technical ideas, but they are time consuming, there should be an easier way I believe. Can I change the color of the last selected face? Can I change the color of the last selected face, so that it is the same as the other selected faces?  Here, I've selected the left face then the right face. Note the right face is some sort of checkered or dithered pattern, and just the outline has the nice orange 'selected' color.    Here I've selected the top face, note the right face has now the nice color.    And here I've deselected the top face. Now, both of the remaining selected faces have the nice color. This is the result I'd rather see instead of image 1. I am new to Ubuntu. I am Using Ubuntu 18.04 along with Windows10. I have gone through the below Q&amp;A and could able to change the name of Ubuntu,      But   if i edit the Ubuntu OS name to my choice, it is then adding "GNU/Linux" at the end. for ex. if i want "Ubuntu 18.04" it is then showing as "Ubuntu 18.04 GNU/Linux". how to avoid this text "GNU/Linux" how to edit the name to my choice which is shown as "Windows Boot Manager (on /dev/sda1)"        Update: I Confirm about the text "GNU/Linux" is solved by @Terrance comments. I still need to try about windows entry.      Final Update: Solved.    I thank @Terrance, @Oldfred, @WinEunuuchs2Unix. All the three methods are working great. i felt the small script is awesome and very very easy to use. which is written by WinEuuuchs2Unix. Best way to track onchange as-you-type in input type="text"? In my experience, input type="text" onchange event usually occurs only after you leave (blur) the control.  Is there a way to force browser to trigger onchange every time textfield content changes? If not, what is the most elegant way to track this “manually”?  Using onkey* events is not reliable, since you can right-click the field and choose Paste, and this will change the field without any keyboard input.  Is setTimeout the only way?.. Ugly :-) A Light is shone out the side window of a spaceship ( moving close to light speed ), will the light still travel at the speed of light in the B axis? Why does the zoom sometimes stop at a point? I often find that I can zoom in to a point, but then cannot zoom any more, even when there is a lot of room to zoom to the meshes on the scene.   This is particularly annoying in the following scenario:  I often land up left clicking on the scene and the 3D cursor shifts there. I use Shift+C to shift the 3D cursor back to the origin. However, this also centers the view on the cursor and shifts the view to show all objects, and sometimes this zooms things way out &ndash; at this point, if I try to zoom in, I can zoom in to a point (using the pinch/zoom on trackpad), but then it stops zooming in.   How do I zoom in after that? Is there anything else I am doing wrong in this case? Why does water pouring from a glass sometimes travel down the side of the glass? If you have a glass of water, say, three quarters full and you pour it at an angle of say, $45^{\circ}$ with respect to the the table, the water comes out of the glass and goes directly down towards the floor.  However, when the glass is more full, or even three quarters full and the 'angle of pouring' is far less with respect the table, when the water comes out of the glass, rather than going straight down it kind of stays stuck to the glass and travels down the outside of it.  Why does this happen? (I'm sure many of you have observed it yourself by accident and ended up making a mess). How to assign same Data to multiple object copies Get Label value for specified language Upgrading straight handlebars to drop handlebars If I did  \setcounter{chapter}{-1} \chapter{Introduction}   then I get Chapter 0 Introduction. I just want the word Introduction, and I want it also in the contents when I use   \tableofcontents   How can I do that? In the Harry Potter universe, wizards and witches have managed to keep Muggles unaware of their existence, across the planet and over many centuries. Up to the timeframe that the novels take place in (the 1990s), I can see how this can be achieved through a combination of discretion and magic, with discretion being the preferred method on occasion (e.g., you don't need magic to slip into Platform 9 3/4 unnoticed, you just need to check that nobody is looking).   Our current world of 2016, however, its a very different place. The UK is (in)famously heavily camera-monitored (). Even more poignantly, a very large (and growing) segment of the population carries an internet-enabled HD camera with them at all times and are willing to use it at a moment's notice (, but it is comedy in part because a more realistic version could happen). It looks like, the moment something magical happens in public, a video of it would be on Youtube/Facebook/Twitter and within minutes.   How does the Ministry of Magic deal with this development? Do they need to create a dedicated corps to monitor social media services and alter records as necessary?