How do you grep a file to remove any space between the lines?
452466
grep -v "^$" filename > newfilename\n\nThe ^$ within the quotes is a regular expression: ^=beginning of line, $=end of line, with no characters between.
1079063
☼♥♫☺\n\nyou can copy it from the "extended" character table\n\ngo to Start / All programs / Accessories / System programs / Character table\n\nor the professional way &hearts ; (without the space between hearts and the semicolon)
1176799
use winrar \nwin rar can compres files for you and split to littel part if compresd files big \nwinrar is free
589015
on here? try  & nbsp; (without the space between the ampresand and n, and paste like 5 or 6)\nelsewhere? hit tab\n\n\n       .
990333
I am changing my answer - I misunderstood it -\n\nUse the second form with the arg " " when you do not want to supply an option to grep.
822848
head -2 threelines | tail -1 threelines\n\n\nI'll break this statement down to explain it\n\nhead -2 threelines :this command displays the first two lines of the file \n this output is sent as a input to the next command ( this is done by |  (pipe)) \n\ntail -1 will display the last line of the output\n\nso if your file is \n\nabc\ncde\nfgh\n\nhead -2 gives\n\nabc\ncde\n\nwhich is the input to tail -1\n\ntail -1 taking this input will give only cde  which the center line in your file \n\nyou can do it using awk also \n\ncat newlines | awk 'NR==2 {print}'\n\nin this you are printing out the lines in the file using cat,piping the output to the awk statement and saying select Number of record=2 and print it out (NR is number of record)
47574
just type in the file extension...normally....eg. C:&#92;whatevre&#92;wahtevre.htm
568253
<br>\n\nThat leaves a space in between text or objects. You would just copy and paste that how ever many times you need it.
392646
You usually do this by using a programming language and comparing the input to a regular expression.\n\nLook up "regular expression tutorial" in Yahoo search and you'll find more information that you probably want  :)
762467
read between the lines
1084791
You could use Instr() and Mid() to find the spaces and replace the character in the next position.\n\nBut the Split() function will eliminate the need to you search for spaces, and it will return each segment of the string in its own array element, so you can just UCase() the first character of each element, and then piece it back together.\n\nFunction ProperCase(asSourceString As String) As String\n    Dim pvSplit As Variant, psTemp As String, plCounter As Long\n    \n    pvSplit = Split(asSourceString, " ")\n    For plCounter = LBound(pvSplit) To UBound(pvSplit)\n        If Len(pvSplit(plCounter)) > 0 Then\n            pvSplit(plCounter) = UCase$(Left$(pvSplit(plCounter) , 1)) & Mid$(pvSplit(plCounter), 2)\n        End If\n        psTemp = psTemp & pvSplit(plCounter)\n        If plCounter < UBound(pvSplit) Then\n            psTemp = psTemp & " "\n        End If\n    Next\n    \n    ProperCase = psTemp\nEnd Function
3928
You can experiment with dir /b, but probably the easiest way would be to drop the files.txt you already have into a spreadsheet, and just delete the columns of info that you don't need.
419166
under linux or cygwin use the split command.\n\nRoxio CD software will handle it for you. \n   search help under split or size to find more about it.
745094
ereg uses a regular expression to search through a string. Using a regex (regular expression) for a task like this is a tad overkill. Instead of using str_replace(), you can use explode() to split the string into an array. This will give you more control over each line, for example using trim() to trim whitespace from the ends.\nExample:\n\n$ingredients = explode(";" $recipe);\nforeach ($ingredients as $ingredient) {\n    echo trim($ingredient) . "<br/>";\n}
220856
Try winrar and execute the command WIZARD in Tools menu... and specify the blocj's size in which the want to split your file.
440955
 \n \n \n \n \n1. Open up My computer and double-click C:\n2. Now press F3\n3. Click All Files and Folders\n4. Type ''*.tmp'' w/o the quotes.\n5. When the search finishes, press Ctrl+A\n6. Now press Shift+Del\n \n \nThat should give you a bunch.\n
796595
This will strip any leading/trailing spaces from $content & then remove all spaces from the $content\n\n$content = preg_replace("/ +/", " ", trim($content));\n$content = str_replace(" ", "", $content);