I have quite a large csv file (call it file.csv). It looks like this one:  col1,col2,col3,... 1,2,3 1,2,5 ...   So after doing something like this cat file.csv | grep "_some_pattern_" I receive only the output values. Is there a way to append the header (the first line) to the output?   It would be very convenient...
Assuming a simple grep such as:  $ psa aux | grep someApp 1000     11634 51.2  0.1  32824  9112 pts/1    SN+  13:24   7:49 someApp   This provides much information, but as the first line of the ps command is missing there is no context for the info. I would prefer that the first line of ps be shown as well:  $ psa aux | someMagic someApp USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND 1000     11634 51.2  0.1  32824  9112 pts/1    SN+  13:24   7:49 someApp   Of course, I could add a regex to grep specifically for ps:  $ ps aux | grep -E "COMMAND|someApp"   However, I would prefer a more general solution as there are other cases in which I would like to have the first line as well.  Seems like this would be a good use case for .
How to add System.Windows.Interactivity to project? What does a "real" quantum computer need for cryptanalysis and/or cryptographic attack purposes? The cryptographic world has been buzzing the word "quantum" for a while now (even the NSA is currently preparing itself for a post-quantum crypto world) and quantum-related hardware engineering is evolving constantly. For example: the 5-qubit quantum computer created at MIT by using the technique of ion traps succeeded in prime-factorizing 15. Does that mean that since it succesfully managed that, that it is a all-purpose quantum computer which could be used for cryptanalysis and/or cryptographic attacks?   If that's not the case, what exactly would a "real" quantum computer need (think: rough description of expected technical abilities, aka specs) to enable its users to use it for cryptanalysis and/or cryptographic attack purposes? And - ignoring rumours about potentially existing but confidential governmental projects - does any such system already exist today? Double decimal formatting in Java In low-cost mass-produced items I often run into black blobs of what looks like resin applied directly on top of something on the PCB. What are these things exactly? I suspect this is some kind of custom IC that is layed out directly on the PCB to save on the plastic  housing/connector pins. Is this correct? If so, what is this technique called?    This is a photograph of the inside of a cheap digital multimeter. The black blob is the only non-basic piece of circuitry present, along with an op-amp (top) and a single bipolar junction transistor. Can you reuse marinade used with raw chicken? Is there a word for capitalizing in the middle of a word, as in "eBay"? Usually this sort of word is a trademarked name, such as eBay or BlackBerry.  Is there a word that describes capitalization mid-word? Why is Grub menu not shown when starting my computer? I am a new user of Ubuntu 12.04.   I installed Ubuntu and Windows XP, and I want to use both operating systems. When I restart or boot my PC the GRUB menu does not appear.  How can I solve this problem? WinForms DataGridView font size How do I change font size on the DataGridView? New tags page mangles tag wiki excerpts From time to time I see an enum like the following:  [Flags] public enum Options  {     None    = 0,     Option1 = 1,     Option2 = 2,     Option3 = 4,     Option4 = 8 }   I don't understand what exactly the [Flags] attribute does.  Anyone have a good explanation or example they could post? How can magnets be used to pick up pieces of metal when the force from a magnetic field does no work? I learned that the force from a magnetic field does no work. However I was wondering how magnets can be used to pick up pieces of metal like small paperclips and stuff. I also was wondering how magnets can stick to pieces of metal like a refrigerator? I am running Ubuntu GNOME 15.10 with GNOME 3.18, and I would like to know if I can do any of the following and if so how:   Make it so that a folder is not indexed but leave its contents indexable (so that if I search for that folder's name in my system nothing will come up, but if I search for its contents, that will come up) Make it so that a folder is not indexable and nor is any of its contents (and if it contains sub-folders within it then it should recursively not allow any contents in them to be indexed nor the contents of any sub-sub-folders in the sub-folders etc, nor any of those sub-folders themselves) Make it so that individual files in a folder are not indexable, though not having any impact on other contents nor the parent-folder   So, are any of these variants possible? I believe the indexing program is called Tracker which indexes files and folders and their contents and allows for one to search for them on the system. Whats this white stuff on my board? Why is plain-hash-then-encrypt not a secure MAC? Did Spike get his reflection back with his soul? Mammals, reptiles, arachnids, insects, etc are all as far as I am aware symmetrical in appearance.  Take a human for instance, make a line from the top of our head right down the middle. However, internally it is not the same. Our organs excluding the kidneys, lungs, reproductive organs, etc are not symmetrically placed in our body.   Why do we not have an even number of each organ so it can be placed symmetrically? If we have a single organ why is it not placed in the middle like the brain or bladder is for instance? Is there some evolutionary advantage that led to this setup? How to use manual partitioning during installation? Polynomial passing through two points with specific tangents How can I calculate a Polynomial that passes through the origin and a given point (P) having given tangents at the origin (Ot) and the given point (Op)?  The given point will always be to the right of the origin (Px &gt; 0). The polynomial should be a function of x (i.e. it moves from left to right).  I believe a 3rd degree polynomial will always fit these constraints, but I'm not certain.  I am looking for a function f( x, Px, Py, Ot, Pt ) = ? which plots a polynomial for x, satisfying the four given values.  When x = 0,   f()   = 0 When x = Px,  f()   = Py When x = 0,   f'()  = Ot When x = Px,  f'()  = Pt I'm having trouble understanding what I'm doing wrong here: I'm trying to set up two network Locations, one for my home network via my cable modem and a second for Wi-Fi tethering via my mobile phone. What I'd like to be able to do is change the Location (under the Apple menu &gt; Location) and have my Mac automatically connect to the proper Wi-Fi network: either my home network SSID or my WiFi tethering SSID. I defined two locations, switched between them, and set the preferred network list for each location. But when I change the preferred network list for one Location, it changes the list for the other Location as well! Am I doing something wrong or is it really not possible to maintain a separate list of Preferred Networks for each network Location? It seems doubtful it's not possible since just about every other netrok setting depends on the location... I am using OS X 10.7.2. I know the thread  However, there is no Linux anymore in the installation site .  Unsuccessful attempts   I do DriraWassim's proposal which does not add anything to apt-get and does not show the installed .deb package in the path/search  sudo apt-get install libxml2:i386  sudo apt-get update sudo apt-get upgrade  apt-cache search adobereader-enu   I download the newest .deb package  and run it.  I cannot find the application anywhere in the system. It is not in the path and not in Ubuntu's search. How can you start it?   System: Ubuntu 16.04, 64 bit Hardware: Macbook Air 2013-mid Linux kernel: 4.6