. This is unfortunate for public data. I know I can split binary files with dd.  What I would like to do is split them all into 99MB files but here's the catch, I don't want to split on a line -- only a newline. Is there an easy way to split up files into chunks based on their size, but not to mid-line.  Example  #/bin/sh for i in $(seq 1 1000000); do   echo "This is a test sentence." &gt;&gt; file done;   Now file is 26MB. I would like that file to be split into 1 MB chunks, but never split anywhere but only a line-boundary (\n).
I am able to use the split command successfully to split large file into multiple smaller files. This is being achieved by following command  split -b 1G $temp_path $final_filepath   But only caveat is that these files many times contain last line which is split across 2 files. Is there any way to avoid that using split or any other command ?
Listen for incoming request on port on Linux, then run command I am after as lightweight as possible solution to listen on a port for a specific request, then run a command should the port be hit and the correct request be recedved.  Eg. Send a request to 192.168.0.10 on port 5432 with the string my_token. On the host (eg. 192.168.0.10), then run a command should that port be hit and the string matched.  I was initially thinking of using netstat (eg. nc -l 5000) then running the command on change. However, ideally a string or token of sorts would be ideal alongside this or similar, but without using a full-blown webserver - essentially something that can run in the background with few resources. I wish to travel to the US and think I am eligible to do so under the Visa Waiver Program. I found a lot of information out there but am still having some trouble understanding how this works.  What is the US Visa Waiver Program? What is an ESTA? I want to show that if a real orthogonal matrix $A$ has determinant $-1$ then $\lambda=-1$ must be an eigenvalue of $A$.  I have proven this in a long-winded way and I was wondering if these is a quick way of seeing it. tikz relative coordinates Double line spacing Can Metamagic be used in Item Creation? What are the limits? One of my players has recently obtained the Craft Wondrous Item feat. In an attempt to prepare for what he may build I want to know the specific limits of Wondrous Items.  I know that someone can create an item for which they do not meet the prerequisites by adding +5 to the spellcraft DC, and that assistance is a thing.  Can someone use meta-magic when crafting a non-specific wondrous item?  Example: Amulet of Empowered Fire-Ball.  If so, can they use meta-magic feats they do not know, substituting for +5 DC?  Can the Spell Level exceed 9 for these items, as long as they add +5 for not meeting the CL requirements, and make the higher check?  Example: Amulet of Maximized Empowered Still Silent Disintigrate. Configuring ADB for Nexus 4 on Ubuntu 11.10 I'm trying to deploy and test an Android app on my Nexus 4 from my Ubuntu 11.10 computer, but ADB doesn't recognize it. I think I need the Google USB drivers, but I cannot find instructions on how to install them on Ubuntu.  How can I install the drivers on Ubuntu 11.10 so that ADB will recognize my N4? Why does this excerpt say that unbiased estimation of standard deviation usually isn't relevant? Why didn't Skynet kill Kyle Reese? How to create batch file in Windows using "start" with a path and command with spaces I need to create a batch file which starts multiple console applications in a Windows .cmd file.  This can be done using the start command.  However, the command has a path in it.  I also need to pass paramaters which have spaces as well.  How to do this?  E.g. batch file  start "c:\path with spaces\app.exe" param1 "param with spaces" Is $\frac{1}{\sqrt{2}}$ a fraction or not?   I just came across a Grade 8 student's class work where the teacher has given the above as an example to differentiate fractions from rational numbers. I think this is wrong fundamentally, as $\sqrt2$ is irrational while all fractions would be rational. Please advise. Thanks! SSH and home directory permissions How to prove polynomials with degree $n$ does not form a vector space? This is one of my linear algebra problems:     Prove that polynomials of degree $n$ does not (The professor made these words bold intentionally) form a vector space.   From what I read, the set of polynomials of degree $n$ should be a vector space, because:   There is an "One" and a "Zero" in this set; We can find inverse for addition and multiplication from this set; It follows all the axioms of addition. It follows all the axioms of scalar multiplication.   Then can someone give me some hints to prove it does not form a vector space? Compare dates in query from IMPORTRANGE and cell for a few days I'm stuck at comparing two dates.  In a big table with dates as columns and products as rows, we want to display the amount of sales per day per product.  What the following query does:   Import our sales via IMPORTRANGE query the specific sales for a given day and product ID return 0 if there is an error (e.g. not found) count the result   This is a working query with the date 2018-03-26 hard coded:  =COUNTA(IFERROR(query(IMPORTRANGE("1OHR0nr_w3oFNNxtMxRwv65xncCBRpK-vV3vvqmHGFPo"; "Sales March!A:K"); "select Col6 where Col6 = '"&amp;$A95&amp;"' and todate(Col11) = date '2018-03-26'"; 0)))  It shows how many sales a specific product has on the specified date.  Now I want the date from a cell in the sheet:  =COUNTA(IFERROR(query(IMPORTRANGE("1OHR0nr_w3oFNNxtMxRwv65xncCBRpK-vV3vvqmHGFPo"; "Sales March!A:K"); "select Col6 where Col6 = '"&amp;$A95&amp;"' and todate(Col11) = date '"&amp;$AR3&amp;"'"; 0)))  But this doesn't work. I tried A LOT of things for the past 3 days but I have no idea if I did that wrong (I'm a beginner) so I'm turning to you. What might be wrong with the date comparison in this section?  "select Col6 where Col6 = '"&amp;$A95&amp;"' and todate(Col11) = date '"&amp;$AR3&amp;"'"  You can see it  in Column AR Row 95 but I can't give edit rights. Do rainbows have ultraviolet bands and infrared bands? We have seen that rainbows looks so colorful as we are only able to see only the visible light. But Do they also have ultraviolet bands and infra-red bands, that we are unable to see? I know someone has already asked the same question but I am concern about the specific ultraviolet and infrared bands only rather than any other wavelength. Boolean and Texts I have used Hexagon for years but find that it sometimes crashes when trying to do Boolean operations with texts.  I have been trying to make the two tables of the Ten Commandments and have been trying to use Blender.  I did it about two years ago in Blender and lost everything on my computer so I am trying again with the latest version of Blender and am having difficulty.  I start with a cube and then get it close to the dimensions I would think the Ten Commandments might look like. I then bevel the top using the bevel modifier. But in doing it this way I don't have any cross sub divisions on the face of the object. I have tried sub dividing first but then I find that I can't bevel the top arches as far as I would like. I still don't know how to add divisions after I bevel the top. Yes I am still a novice at this program.  In any case I did figure out how to make text and turn them into an object. When I make the texts I do all four of the commandments for one side and then the other six for the other side. So this makes allot of texts to cut out.  When doing the Boolean operation in Difference sometimes nothing happens. I am thinking I need to have some sub - divisions on the face of the sized cube after it is beveled but am not really sure if this is the problem.  This whole thing about normal's is still Greek to me. I have watched some videos on how to cut letters into a cube but for some reason it does not work this easy after I bevel the top of the cube. Or it could be that Blender does not like a bunch of texts all at once.  Could someone show me a video or give me some simple steps to make my project work? How to completely uninstall and remove QGIS 2.8.1 on Windows Vista? I want to uninstall and completely remove QGIS installation from my computer(windows vista). I have uninstalled it and when i try to reinstall it says it is already installed on the system. How might I schedule a C# Windows Service to perform a task daily? I have a service written in C# (.NET 1.1) and want it to perform some cleanup actions at midnight every night. I have to keep all code contained within the service, so what's the easiest way to accomplish this? Use of Thread.Sleep() and checking for the time rolling over? Example of a finitely generated faithful torsion module over a commutative ring Can a finitely generated module $M$ over a commutative ring have $\operatorname{Ann}(x) \neq 0$ for all $x \in M$ while $\operatorname{Ann}(M) = 0$?  It's not difficult to show that there is no such module if the ring is a integral domain. For general, I guess the answer is yes. But I failed to find a desired example. Arithmetic of continued fractions, does it exist? I'm interested in the arithmmetic of continued fractions and specially in multiplication. Consider  $$ f(x)=\cfrac{f_{0}(x)}{1-\cfrac{f_{1}(x)}{1+f_{1}(x)-\cfrac{f_{2}(x)}{1+f_{2}(x)-\cfrac{f_{3}(x)}{1+f_{3}(x)-\cdots}}}} $$   and   $$ g(x)=\cfrac{g_{0}(x)}{1-\cfrac{g_{1}(x)}{1+g_{1}(x)-\cfrac{g_{2}(x)}{1+g_{2}(x)-\cfrac{g_{3}(x)}{1+g_{3}(x)-\cdots}}}} $$   Are there arithmetic rules (algorithms) for the multiplication of continued fractions? Specifically, is it possible to obtain a continued fraction $h(x)=f(x)\cdot g(x)$ where   $$ h(x)=\cfrac{h_{0}(x)}{1-\cfrac{h_{1}(x)}{1+h_{1}(x)-\cfrac{h_{2}(x)}{1+h_{2}(x)-\cfrac{h_{3}(x)}{1+h_{3}(x)-\cdots}}}} $$   I've found , but I'd like more. Does anyone here knows of papers, algorithms, etc?  Thanks.    Update 1: Another .