I have a tab-delimited file with a number and the names belonging to the same number on the same row. The number and names are separated by a tab. The names are linked with each other by 2 underscores (__). It looks like this:  33  Hhe.1__Hhe.2__Hhe.3__Hhe.4   I would like to convert it (by using the command line) to this output:  33  Hhe.1 33  Hhe.2 33  Hhe.3 33  Hhe.4
I have a .txt file with numbers ordered like this (on the same row):  106849_01373    106849_01967    106850_00082    23025.7_01059      I would like to convert them like that:  106849_01373 106849_01967 106850_00082 23025.7_01059   I have no idea which command to use. Can somebody help me with this?
Why doesn't bash expand this variable when I prefix a command with a "one time variable assignment" If I run this bash command and prefix the statement, so that the variable fruit should exist, but only for the duration of this command:  $ fruit=apple echo $fruit  $   The result is an empty line. why?  To quote a comment from wildcard on :     parameter expansion is done by the shell, and the "fruit" variable is   not a shell variable; it's only an environment variable within the   environment of the "echo" command   An environment variable is still a variable, so surely this should still be available to the echo command? Counterspelling a counterspell How far can I refactor the code in someone else's question? What is the difference between a 'closure' and a 'lambda'? Unity doesn't load, no Launcher, no Dash appears When I login, nothing happens.   I am presented with my desktop wallpaper.    No Dash, no Launcher, nothing. Joris and Srikant's exchange  got me wondering (again) if my internal explanations for the difference between confidence intervals and credible intervals were the correct ones.  How you would explain the difference? Is there really a way to make a true toon shader material in Cycles? Is there a way to make a true toon shader material in Cycles?  Here's, in order of importance, what would be ideal to find in such a shader:   Must use Cycles Must be an actual shader Must not rely on lighting Must be independent of camera position Must react directly to lighting rather than manually having to change it to emulate it Should be easily made into a node-group Should have the following configurability:   Main color Darkness color Shadow depth (how far the shadow goes from the unlit side)    Below, I'll be listing some already-found methods and their flaws:    Cycles's Toon BDSF:  Source: Blender  Result:    Node setup:    Cons:   Not a clear-cut two-color shading Reacts to diffusion of surrounding objects      Mask &amp; Ramp:  Source:   Result:    Node setup (Compositor):    Cons:   Very grainy Does not support colour textures Not easy to change shadow depth in a nodegroup Not a material, requires compositor Requires use of object indexes     Shadeless Fresnel:  Source:   Result:    Node setup:    Cons:   Uses camera's direction Ignores lighting Not easy to change shadow depth in a nodegroup     Shadeless Normal:  Source:   Result:    Node setup:    Cons:   Ignores lighting Direction of shadow is manually changed Not easy to change shadow depth in a nodegroup   However, this one is easily the best one. It's pretty great, and would work still images very well.    That's all I've got. Does anyone else have any methods that fall under most of the criteria I listed above? Also note that OSL is totally fine, if it works. Recommend MVVM or just answer the question? How do I halt an android phone using adb command? I can reboot, but I don't know how to halt.  I tried shutdown -k wait command, but it did not work. Live USB data gets lost on Restart I am crawling some data using Apache Nutch and storing it on my USB Drive. The OS itself is Ubuntu Live Boot OS. But for every restart or shutdown I am losing my data. I also tried suspending my Ubuntu user still data was not visible when I reinserted my live USB.  Is there any way I can keep the data intact and does not loose and application settings installations when I do restart Ubuntu.  Used USB installer provided by pendrivelinux.com at This post is in reference to the following blog post:   To start off, a quick introduction of myself; my name is Jascha Drel, Product Manager for Advertising at Stack Overflow. In this role, I am part of ’s organization.   Our team is continuously making improvements to the ads experience on our sites. One of the changes we’re excited about sharing is the new Report this Ad feature now available on some of our sites. We want to continue to give our communities more native control over their ad experience. We needed a quantifiable way to receive feedback and this feature will allow that.  We enforce strict  on the types of advertisers we work with but cannot fully control what is shown due to how advertising delivery works. However, being able to hear from our users about problematic ads will be a huge benefit as we can address those problems faster and with more accuracy. The Report this Ad feature will allow us to quickly see and investigate ads reported by you which matters to us because we want to hear your thoughts.  Furthermore, this new feature ensures that the members of our communities have a built-in way to report ads they consider problematic when we test any new ad formats/solutions.  We are launching this feature on 5 sites initially (, , , , and ) to get a good understanding of what we can expect in terms of numbers of reports whenever launching this to the entire network. Prior to launching it network-wide, we’ll share general results we’ve seen here.  What happens once an ad is reported?  All reports will be consolidated into a dashboard that the team will look at several times per week to spot irregularities in terms of the total number of reports, report categories, and on an advertising campaign basis. We will not be replying to individual reports, but we will reach out to our advertisers, to share feedback or notify them if the ad being reported does not fit our guidelines. We may also evaluate our policies in response to large numbers of reports not covered by them. Since we don’t have a baseline for the number of ads that are going to be reported using this new feature, we will consider reevaluating the process if the current process doesn’t scale.    We’d like to share an update on the progress of this feature:   We've launched this feature on 5 SE sites (Server Fault, Database Administrators, Arqade, Game Development, and Unix &amp; Linux) initially for logged in users only, and for anonymous users afterward. The report this ad button was shown several million times (of which roughly 65% paid ads and 35% house ads). We showed several dozens of different ad campaigns. So far we have received 0 reports. We've tested the feature several ways, found some minor bugs (which have been/are being fixed), however, in the vast majority of the scenarios the feature works well (we’re happy to be ).   We’re currently graduating this feature and are releasing it network-wide this week. Feel free to comment below if you have any questions/comments. How to include third party Python libraries in Google App Engine? How to burn or mount an ISO file? Showing $\left(1+\frac{1}{n}\right)^n$ is an increasing sequence by comparing the binomial expansions term by term So I know that showing $\left(1+\frac{1}{n}\right)^n$ is an increasing sequence has probably appeared on this site about 100 times, but my professor said he thinks the induction step is most easily seen if you expand this out and compare the summation term by term. I tried this and I did not what see why the inequality was obvious. Can somebody help me out here? Thanks! Can I smoothly upgrade from one LTS to next LTS release? Question is about Ubuntu release process. Are migrations from n to n+1 releases expected?  Assuming we have server with installed Ubuntu 14.04 LTS. Will it be smoothly upgradable to Ubuntu 16.04 LTS via apt-get upgrade ?  Assumptions:   scope is software therefore we assume that given hardware is supported on both releases (upgrading from and to) that's why, always before upgrade you are asked to make backup to be able to revert in case of failure Multiple "order by" in LINQ Please stop bounties from turning off community moderation Possible Duplicate:                tl;dr: Please get rid of "This question has an open bounty and cannot be closed"  Questions with bounties on them can't be closed:    This is by design, and the recommended course of action is to flag for moderator attention, at which point they'll decide whether to refund the bounty and close the question or not.   But why should a bounty disable regular community moderation?  We should be able to cast close votes on bountied questions as usual, and if a question gets enough, the bounty's refunded and the question closed.  An obvious benefit would be reduced burden on moderators, but I doubt that this is really a significant part of their workload.  More important is allowing the entire community's wisdom to be brought to bear.  Consider this question:      Having a simple MFC application with web browser controller that navigates to some site and then to another one on and on.      Using a powerfull machine (16 cores and lots of memory) OS is Server 2008 R2. I can see when launching my app over 30 instances I'm getting the OS UI (each window including my app, mspaint, taskmgr etc..) become very sluggish and slow.      I have monitored the machine resources (CPU, memory and GDI objects) but it seems that all of them are not even close to be in some level of stress.      What is the problematic resource that influence the machine in such way?      10x, Guy   It doesn't look like a good question: somewhat poorly written, vague, not a ton of information, etc.  I would vote to close this question.  However, I don't do much work with MFC and maybe there's something I'm missing.  (I can readily imagine a similarly bad looking question with the extremely concrete answer: .)  I'm comfortable casting a vote to close, not closing unilaterally.  Flagging for a moderator just passes the buck to them, when the correct action is letting the community weigh in. Remove line containing certain string and the following line How does apt-get really work? Okay, I understand how I may use apt-get {install|upgrade|remove} mypackages to install, upgrade, or remove binaries as well as their configuration data files and dependencies (actually, remove will only remove the binaries unless additional flags are provided).  I am not looking for how it is used as the man describes this, but high level what it is doing.  My end goal is to create a means for me to install and manage some custom software (created by a make file) on multiple remote machines, and I need to learn more about the process.  If answers to this question are based on which distribution is used, please tailor to Debian.  In addition to generally how it works, I have the following specific questions:   How does the client that is accessing the apt repository keep track of the files? Must the repository be hosted on the same operating system (i.e. can apt repository be hosted on redhat)? How are the locations to install files specified?  Is this specified by the .deb file? How is a remote machine accessing the repository?  Is it just ftp(s) or http(s)? Is the machine that is hosting the repository running special software (like gitlab for a git repository), or is it just some structured file system? When I dip a paper towel in a cup of water the water gets drawn up due to . How is this reconciled with conservation of energy, as it would seem on the surface that the potential energy of the system has gone up with no work being done?