This is kind of tricky  I have a folder, and inside this folder are several subfolders, each subfolder contains one subfolder of it's own (subsubfolder), I want to move these 'subsubfolders' to the original folder.  This is what it looks like right now:  Archives/ │ ├── Records_A/ │   └── Folder_1/ |       └── Item_1.png │ ├── Records_B/ │   └── Folder_2/ |       └── Item_2.png │ ├── Records_C/ │   └── Folder_3/ |       └── Item_3.png │ ├── Records_D/ │   └── Folder_4/ |       └── Item_4.png │ ├── Records_E/ │   └── Folder_5/ |       └── Item_5.png  ...   I want to move all the subsubfolders so that it looks like this:  Archives/ │ ├── Folder_1/ │   └── Item_1.png │ ├── Folder_2/ │   └── Item_2.png │ ├── Folder_3/ │   └── Item_3.png │ ├── Folder_4/ │   └── Item_4.png │ ├── Folder_5/ │   └── Item_5.png │ ├── Records_A/ │ ├── Records_B/ │ ├── Records_C/ │ ├── Records_D/ │ ├── Records_E/  ...   Is there anyway to do this in bash?   I am not looking to move any files here, only folders  Note that the names of the subfolders don't always start with 'Record_' And The names of the subsubfolders don't always start with'Folder_', I'm looking for a general solution based on the directory structure rather than the names.  EDIT: I found a solution if anyone else has the same problem:  mv -v ./Records_*/* ./   just replace the "Records_" with whatever prefix the folders' names begin with (or just leave * for everything).
How do I delete all Folders with a specific name (e.g. 128Kbps_Songs) without deleting its files  For example if I have directory "MP3_SONGS" with subdirectories "A", "B", "C" and each subdirectory has MANY directory Contains Film Name "FILM_NAME1", "FILM_NAME2", "FILM_NAME3" in it, In That Each Film NAme I have specific Folder NAme (128Kbps_Songs) in this "128Kbps_Songs" Folder I have That Film mp3 Songs Files  how can I remove the Folder "128Kbps_Songs", in Each Film_Name directory and Have to get these mp3 songs in that FILM_NAME..   ( Have to Delete 128Kbps_Songs Folder in all FILM_NAME without deleting the mp3 Songs in it, have to get the mp3 in FILM_NAME Directory..  MP3_SONGS (Parent Directory) ------ A , B, C  A (Sub Directory1) ------ FILM_NAME1 , FILM_NAME2 B (Sub Directory2) ------ FILM_NAME3 , FILM_NAME4 c (Sub Directory3) ------ FILM_NAME5 , FILM_NAME6  FILM_NAME1 (Directory) ---- 128Kbps_Songs (Directory) ------ FILM_NAME1 (MP3 Files) FILM_NAME2 (Directory) ---- 128Kbps_Songs (Directory) ------ FILM_NAME2 (MP3 Files)  FILM_NAME3 (Directory) ---- 128Kbps_Songs (Directory) ------ FILM_NAME3 (MP3 Files) FILM_NAME4 (Directory) ---- 128Kbps_Songs (Directory) ------ FILM_NAME4 (MP3 Files)  FILM_NAME5 (Directory) ---- 128Kbps_Songs (Directory) ------ FILM_NAME5 (MP3 Files) FILM_NAME6 (Directory) ---- 128Kbps_Songs (Directory) ------ FILM_NAME6 (MP3 Files)  Need Files in: FILM_NAME1 (Directory)  ------ FILM_NAME1 (MP3 Files) FILM_NAME2 (Directory)  ------ FILM_NAME2 (MP3 Files)  FILM_NAME3 (Directory)  ------ FILM_NAME3 (MP3 Files) FILM_NAME4 (Directory)  ------ FILM_NAME4 (MP3 Files)  FILM_NAME5 (Directory)  ------ FILM_NAME5 (MP3 Files) FILM_NAME6 (Directory)  ------ FILM_NAME6 (MP3 Files)
What does different focal length offer me? When are "because", "since","for" and "as" interchangeable? How do you list the primary key of a SQL Server table? How do I set a custom resolution? How do I show that $\sum_{cyc} \frac {a^6}{b^2 + c^2} \ge \frac {abc(a + b + c)}2?$ Let $a, b, c$ be positive real numbers, show that  $$\frac {a^6}{b^2 + c^2} + \frac {b^6}{c^2 + a^2} + \frac {c^6}{a^2 + b^2} \ge \frac {abc(a + b + c)}2.$$  I think this is likely to turn out to be proved by Hölder, but I can't see how. Any hints will be appreciated. Optimization when Cost Function Slow to Evaluate Incompatibility between TikZ and babel In my preamble, you'll find:  \renewcommand{\baselinestretch}{1} \renewcommand{\familydefault}{\sfdefault} \usepackage[sfmath]{kpfonts} \usepackage[mathrmOrig]{sfmath} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsfonts} \usepackage{animate} \usepackage{anysize} \usepackage{arcs} \usepackage{array} \usepackage[scale=0]{background} \usepackage{blindtext} \usepackage{calc} \usepackage{cancel} \usepackage{chngcntr} \usepackage{CJK} \usepackage{CJKspace} \usepackage{CJKpunct} \usepackage{colortbl} \usepackage{enumitem} \usepackage{epstopdf} \usepackage{etoolbox} \usepackage{fancybox} \usepackage{fancyhdr} \usepackage{float} \usepackage{framed} \usepackage{graphicx} \usepackage{hyphenat} \usepackage{ifthen} \usepackage{latexsym} \usepackage{lmodern} \usepackage{multicol} \usepackage{multirow} \usepackage{mwe} \usepackage{pgffor} \usepackage{rotating} \usepackage{tabularx} \usepackage{textcomp} \usepackage{tgheros,tgtermes,tgcursor} \usepackage{tikz} \usepackage{times} \usepackage{tipa} \usepackage{varwidth} \usepackage{wasysym} \usepackage{wboiboites} \usepackage[abs]{overpic} \usepackage[breaklinks,colorlinks=true,linkcolor=red,citecolor=red, urlcolor=blue]{hyperref} \usepackage[framemethod=TikZ]{mdframed} \usepackage[breakable, theorems, skins]{tcolorbox,empheq} \usepackage[default]{gillius} \usepackage[document]{ragged2e} \usepackage[latin1]{inputenc} \usepackage[spanish]{babel} \usepackage[T1]{fontenc} \usepackage[total={18.59cm,26.5cm},left=1.5cm,top=2.5cm]{geometry} \usetikzlibrary{matrix,arrows, positioning,shadows,shadings,backgrounds,calc, shapes, tikzmark} \usetikzlibrary{shadows.blur} \usetikzlibrary{shapes.symbols} \usetikzlibrary{patterns,fadings} \tcbuselibrary{skins,breakable,listings,theorems}    I'm trying to draw an arrow for X axis and Y axis.   \begin{tikzpicture} \draw[yellow!10, fill=blue!5](-1, -1) rectangle (7, 5); \draw[dotted] (-0.75,-0.75) grid (6.75,4.75); \node[below] at (-0.25,0){$O$}; \draw[-&gt;,black, thick] (-0.75,0)--(6.75,0); \end{tikzpicture}   But I get this error:    Additionally, if I remove -> from the options of \draw the tikz picture compiles normally. Reinhardt's main strength is his shielding abilities and the protection he provides for his team, but Are there any abilities that cannot be blocked by Reinhardt's barrier field? How would I give a simple example of a function $f$ differentiable in a deleted neighborhood of $x_0$ such that $\lim_{x\to x_0}f^\prime(x)$ does not exist? I cannot seem to think of an example.  A delete neighborhood is an open interval about $x_0$ which does not contain $x_0$. So, $(x_0-\delta,x_0+\delta)-\{x_0\}$ for some $\delta&gt;0$.  How would something be differentiable in a deleted neighborhood if at the point of the derivative, the limit does not exist. Presumably, the derivative ends up looking something like $\lim_{x\to x_0} \dfrac{1}{x}$, if it does not exist. Render Glass like materials with Alpha Channel to composite in external app Hope you can help me with some issues I've been dealing these days.  As I'm rendering products, most of the time I need to render some transparent materials in order to do a post-pro in Photoshop, change the backgrounds, superpose images, etc.  I've been looking for an answer but yet I've couldn't get a solution for this problem.  I need to render materials with transparency and no background in Cycles.  I've found that there are two ways to do this:   Render with transparency in the materials.  Render and get two renders, the original and another one only with the alpha channel to edit in Photoshop.   For the first option, I've achieved to render a glass-like material, as PET plastic using this node tree:    For the second option, I haven't found a way to get the alpha channel in cycles that includes the object with transparency and, if possible, the shadows in the background| but without the background. pattern matching in vim Was Quirrell the Defense against the Dark Arts teacher for more than one year? It's well seen throughout the series that there is a “curse” on the DADA teacher position, that no one can hold that post for more than a year. But it seems like Quirrell has been around for longer than a year. What's up with that? What do repeating '^@' symbols in a logfile mean? A few times I have come across this in a log file:  Sep 17 09:35:57 00187d378926 ovpn-00187d378926[1701]: /sbin/ifconfig tun0 0.0.0.0 Sep 17 09:35:57 00187d378926 kernel: Kernel logging (proc) stopped. Sep 17 09:35:57 00187d378926 rsyslogd: [origin software="rsyslogd" swVersion="4.6.4" x-pid="1707" x-info="http://www.rsyslog.com"] exiting on signal 15. ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@   What does it mean?  Sometimes it is a single line, other times it is lots of lines.  I usually see it happen on Debian 6 machines. Could there be a bit of reputation leakage between the sites, please? How to test apex classes with Pagereference? I'm struggling to test a class with pagereference. Following is the class...  public with sharing class redirectOrderPartner{  public String currentRecordId {get;set;} public orders__c orderId {get;set;}  public redirectOrderPartner(ApexPages.StandardController controller) {      }     Public Pagereference go(){      currentRecordId  = ApexPages.CurrentPage().getparameters().get('orderid');      system.debug('---currentRecordId  ---'+currentRecordId  );     orderId = [select id from orders__c where name =: currentRecordId limit 1];      system.debug('---orderid---'+orderId);      PageReference pageRef = new PageReference('/apex/OrderTrackingClass?id='+orderId.id);     pageRef.setRedirect(true);     return pageRef;    }   }   Following is what I tried....    @isTest  public class redirectOrderPartner_TEST  {             static testMethod void Test(){            Account acc = new Account(Name='ABC Corp.');           insert acc;            orders__c tempOrder = new orders__c(name = '0001234567', account__c = acc.id );           insert tempOrder;            Test.startTest();            PageReference pageRef = Page.redirectOrderPartner;           Test.setCurrentPage(pageRef);            ApexPages.Standardcontroller sc = new ApexPages.Standardcontroller(tempOrder);           ApexPages.currentPage().getParameters().put('Id',tempOrder.name);           PW_redirectOrderPartner ec = new redirectOrderPartner(sc);           ec.go();                                   Test.stopTest();       }   } I get the following error message on testing..     System.QueryException: List has no rows for assignment to SObject   What am I missing? Thanks Creating a textarea with auto-resize There was , which I've tried. But there is one problem: the textarea doesn't shrink if you delete the content. I can't find any way to shrink it to the correct size - the clientHeight value comes back as the full size of the textarea, not its contents.  The code from that page is below:  function FitToContent(id, maxHeight) {    var text = id &amp;&amp; id.style ? id : document.getElementById(id);    if ( !text )       return;     var adjustedHeight = text.clientHeight;    if ( !maxHeight || maxHeight &gt; adjustedHeight )    {       adjustedHeight = Math.max(text.scrollHeight, adjustedHeight);       if ( maxHeight )          adjustedHeight = Math.min(maxHeight, adjustedHeight);       if ( adjustedHeight &gt; text.clientHeight )          text.style.height = adjustedHeight + "px";    } }  window.onload = function() {     document.getElementById("ta").onkeyup = function() {       FitToContent( this, 500 )     }; } The sine inequality $\frac2\pi x \le \sin x \le x$ for $0<x<\frac\pi2$ What is the single most influential book every designer should read? What is the single most influential book every designer should read? Computational complexity of Fibonacci Sequence What is numeric promotion?