I find a list of bam files using $bams=$(find /data/and/ -type f -regex &quot;.*\.bam&quot;) #/data/DNA128441.bam #/data/DNA128442.bam #/data/DNA128443.bam  And wanted to feed in a script test.sh #!/bin/bash bam=&quot;$@&quot; echo &quot;You provided the arguments:&quot; ${bam} s=${bam##*/} r1=${s%.bam}_R1.fastq r2=${s%.bam}_R2.fastq echo $r1 echo $r2  But when I run: $bams=$(find /data/and/ -type f -regex &quot;.*\.bam&quot;) ./test.sh $bam You provided the arguments: /data/and/DNA128441.bam /data/and/DNA128342.bam /data/and/DNA128343.bam DNA128343_R1.fastq DNA128343_R2.fastq  My question is how to make it process one by one such like a desired output: $bams=$(find /data/and/ -type f -regex &quot;.*\.bam&quot;) ./test.sh $bam You provided the arguments: /data/and/DNA128341.bam DNA128341_R1.fastq DNA128341_R2.fastq You provided the arguments: /data/and/DNA128342.bam DNA128342_R1.fastq DNA128342_R2.fastq You provided the arguments: /data/and/DNA128343.bam DNA128343_R1.fastq DNA128343_R2.fastq
I have a complex command that I'd like to make a shell/bash script of.  I can write it in terms of $1 easily:  foo $1 args -o $1.ext   I want to be able to pass multiple input names to the script. What's the right way to do it?    And, of course, I want to handle filenames with spaces in them.
Proof of Laplace transform of real number powers: $\mathcal{L} \{ t^n \} = \frac{n!}{s^{n + 1}}$ Update: this is a lengthy post, you can     Note: The quick language list refers to the list in the screenshot below, accessible throught the shortcut Win + Space bar  I have two languages for windows spell check in my system, English (United States) and French (Switzerland), but despite both languages being properly configured with "Swiss French" input keyboard, US Keyboard input keeps appearing on this list:    Here's the settings for English (United States) language, you can see the only input is "Swiss French":    Same for Français (Suisse), the only input is "Swiss French":    In the Control Panel, both are also set as Swiss French:    All my settings are set to use "language list":     Here's a few things that I already tried:   I already managed to remove it by some language configuration gymnastics, by adding and removing languages, it always eventually comes back I have already done this:  There's no mention of US Keyboard in my registry settings either:     Please help, I'm desperate, this is my third computer with Windows 10 and they all do the same thing. Remmina remoteapp over RDP I was wondering how to use remmina to open applications on a Windows machine over rdp using remoteapp (or seamless or whatever it's actually called).  I've already used Kim Knight's  to set up remoteapp on a Windows 7 machine and I can connect and run remote apps fine from another windows box.  Allegedly FreeRDP (which Remmina uses for its RDP Plugin) has support for remoteapp. I'm not sure how to make use of it though. I can't find any examples of people actually doing this online but there is a , from which I can infer that there is some way to run remote apps.   I've tried many combinations of settings for Client, Startup Program and Startup Path in the Advanced tab when configuring an RDP connection in Remmina, but I can't make it work. I can connect to Windows boxes with RDP just fine, just not running a remoteapp. Which is correct “Is that yours?” or “Is that your’s?”?  I ask because it is possessive, so I would think it would be the latter, but I typically use and see the former usage.  Are there particular cases in which one should be used instead of the other? Or is one simply correct and the other not?  This is one of the few things that still confuse me, so help is greatly appreciated. counting number of specific string in each row I have a SNP table looks like this  A N N N N N N N N N N N N C N N N C N N N N N N N N N N N N N N N N N N N C N N N C N N N N N N N N N N N N N N N N N N C C N N N N N N N N N N C C N N N C C N N N N N N N N N N N N N N N N N   I want to count total number of N in each row? any idea how to do that Windows 7 stuck on CLASSPNP.SYS I'm running Win 7 x86 on a Lenovo Thinkpad Z61m in dual boot mode with Win XP, both OSes are running on separate partitions. I have a faulty battery and if left unplugged my laptop shuts usually down within 10 minutes. Last night, it shut down due to this, but after plugging in AC power and starting back up I'm stuck at the "Starting Windows" screen, I'm unable to boot into safe mode or into recovery mode(XP boots fine).  I believe I had installed some Win 7 updates the same/previous day. From one of the boot options I was able to see that Windows 7 is getting stuck on CLASSPNP.SYS  How can I go about fixing this?  I do have a complete Win 7 Restore CD that I created after setting up my machine, I'm unable to boot into this either.  Please help! I have an object at a fixed position in 3D space. I would like the camera to circle around it while facing it. I want to path of the camera to be circular in 2D, meaning that it does not move up or down.  I need this to be pretty accurate. I don't want to manually set a keyframe every frame for position and rotation. I would like to do this maybe with an expression, not with manual keyframing. I am not sure how to go about this but I think it is going to involve Python as well as some trigonometry. Antiresonance of multiple parallel decoupling capacitors: use same value or multiple values? My quesiton: Is it better practice to put same-valued capacitors in parallel of capacitors of different values to decouple the high-frequency noise caused by digital ICs? Background Digital IC need a decoupling capacitor close to their supply pins to ensure a stable voltage during power transients and to deal with noise (mostly to prevent noise generated by the IC to affect neighboring circuitry). It seems sensible to place a bulk capacitor (say 10-100uF), to act as an energy reservoir, and several smaller capacitors to deal with higher frequencies. The reason to place several small capacitors instead of just one is to deal with their Equivalent Series Inductance (ESL), which in practice, causes them to behave like an LC circuit. The effect of anti-resonance Yet, here is where best design practices and electronic myth seem to get mixed up and confusing to me. Most electronic engineers I have met like placing several decoupling capacitors of different values in parallel (with the smaller capacitors closer to the IC). The logic behind it is that the each capacitor takes care of a different noise frequency as depicted in Figure 1.  Figure 1: Impedance over frequency of three different value capacitors in parallel (cyan) vs their individual contribution (brown, blue, red). Image taken from . Note the small anti-resonance peak. It seams no major trouble , and the overall behavior of the three different capacitors in parallel is vastly superior to their individual decoupling capabilities. However, I have read in  by [Henry W. Ott] that placing capacitors of different values may cause a much greater antiresonance-peak which can be very harmful for our designs (see Figure 2). In fact, it amplifies any noise that falls into the anti-resoance frequency range, which is corroborated by .  Figure 2: from Electromagnetic Compatibility Engineering, by Henry W. Ott, section 11.4.4. The 15nH inductance makes reference to the capacitors ESL. What is a good reference for rigorous Electromagnetism and Electrodynamics? Is there any good book on Electromagnetism from a more mathematical point of view? By this I mean a book which makes use of differential forms and maybe De Rham cohomology. I was also searching for something that would include E&amp;M in the big picture of Gauge theories. I am often logged in several SSH sessions at once. To logout from several sessions, I press CTRL+d, until I am back on my local machine. However, I occasionally press it once too many, and my terminal exits. Is there a way to make CTRL+d unable to close my terminal ? I am using terminator as my terminal emulator. I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference? I'm trying to typeset SuperCollider code using the listings package.  Any "freestanding" identifiers that begin with a capital letter are class names, and should be highlighted; by "freestanding", I mean outside of strings or comments. I would be tickled pink if listings could let you define identifiers in terms of regexp, e.g. [A-Z][A-Za-z0-9_]* but the manual doesn't suggests that as a possibility.  SuperCollider has some 2300 classes... I really don't relish listing all of them literally in my preamble. I guess I could extract them by hand for each individual listing, but I'd rather not have to.  Is there a way to do this without a really massive morekeywords expression? (Perhaps using another package?)  Sample SuperCollider code:  p.clear;  ~grains.addSpec(\tfreq, [1, 40, \exp]); ~grains.addSpec(\overlap, [0.1, 10, \exp]); ~grains.addSpec(\pos, [0, b.duration]);  // 3.43 is nice! ~grains.addSpec(\rate, [0.5, 2, \exp]); ~grains = { |tfreq = 25, overlap = 6, pan = 0, amp = 0.2, pos = 3.43,    rate = 1|    var trig = Impulse.ar(tfreq);    TGrains.ar(2, trig, b, rate, pos, overlap / tfreq, pan, amp) }; ~grains.play;   Impulse and TGrains should be highlighted in blue. I have dozens of other listings using different capitalized keywords. How to copy files via terminal? I have read about copying files with terminal but these examples will help me a lot. So here is what I want to do:  Examples:   I have a file in /home/levan/kdenlive untitelds.mpg and I want to copy this file to /media/sda3/SkyDrive and do not want to delete any thing in SkyDrive directory. I have a file in /media/sda3/SkyDrive untitelds.mpg and I want to copy this file to /home/levan/kdenlive  and do not want to delete any thing in kdenlive directory  I want to copy a folder from home directory to sda3 and do not want to delete any thing on sda3 directory and opposite I want to cut a folder/file and copy to other place without deleting files in that directory I cut it into. Will the Garbage Collector call IDisposable.Dispose for me? Routing in home LAN I'm trying to understand some basic concepts of networking. I have following home LAN:     Is it right (like above) to have 2 NIC's each one having 2 different gateways on one station? There PC2 have 2 NICs - the first's one gateway is 192.168.0.1 the second's 192.168.1.1? Initially (just after system startup) the ip table is like that:  192.168.0.0    255.255.255.0         On-link      192.168.0.11    276 192.168.0.11   255.255.255.255       On-link      192.168.0.11    276 192.168.0.255  255.255.255.255       On-link      192.168.0.11    276    and when i run netcat:  nc -zv -s 192.168.0.11 192.168.0.11 80    to test if port 80 is open it works - the port 80 is indeed open. But when i remove the 192.168.0.11 route i got "TIMEOUT" on nc test. Shouldn't it pick 192.168.0.0 route and work? Moreover when i add the route manually:   route add 192.168.0.11 mask 255.255.255.255 0.0.0.0   it still doesn't work! I can't change the metric to desired value. When i run for eg. route change 192.168.0.11 mask 255.255.255.255 192.168.0.11 metric 500 the result metric is't 500 but 520! (no matter if auto-metric is enabled or not)? Is there any connection between -s flag (local source address) in netcat and routing table's Interface column? I have ran into some issues when it went down to install Steam on Debian. The console as well as Apper comes up with missing dependencies  and the package isn't going to install. I would like to protect the formatting of a cell (or a range of cells) in a Google Spreadsheet, but still allow changing the data in that (or those) cell(s).  For example, I want to add a validation rule on a cell that says the cell has to contain a number between 1 and 10, and I would like others to be able to change the value in that cell, but not the validation rule itself.  How do I do that?  So far I was only able to completely protect the cell (content + formatting) or not at all (the user can change the content as well as the formatting).  To me this seems to be an important functionality when adding access rights to spreadsheets. Is it possible that it is completely missing from Google Spreadsheets? Can I increase the speed of combat? XCOM Enemy Unknown is a beautiful game, but you can only see every 5 second animation so many times before it becomes repetitive and self-indulgent. Is there a way to make the animations go faster or speed combat up in some other way, so that I can spend more time strategically exterminating aliens and less time watching my operatives shoot their guns? How to loop over the lines of a file? Full Disk Encryption using Ubuntu Core\Snappy I'm not sure if this is the right place to ask , but anyway :   I'm running ubuntu-core (snappy) on Raspberry Pi 3 and I'm willing  to perform partition\full disk encryption using cli\code. is it possible?  thanks