The tag has no wiki summary.

learn more… | top users | synonyms (1)

0
votes
0answers
10 views

Visio 2010 creating boxes around text

I recently installed Visio 2010 and spend a lot of time modifying diagrams. I have a large design with multiple colored text and lines in shapes. I can highlight everything and change the text to a ...
1
vote
2answers
44 views

Newlines while saving variable to file - bash

I have mulitiple ip adresses in a variable. ActiveIPs= 192.168.0.1 192.168.0.2 192.168.0.3 I want to save them to a file like this 192.168.0.1 192.168.0.2 192.168.0.3 how do i do this?
0
votes
2answers
53 views

How can I insert a line break over 100 times for a given text string?

I got this very, very, very long text string that consists only of e-mail addresses. It's so long that it goes off my screen several pages to the right. It makes it impossible to read. It looks ...
1
vote
1answer
73 views

Copy multiple lines from Windows Command prompt without forced newlines

Is it possible to copy multiple lines from the Windows Command Prompt without it inserting a new line where each line reaches the end of the terminal? For example, if I have the following line in the ...
1
vote
3answers
76 views

Vim undoing text width formatting

I wrote a document in vim with textwidth=80. I would now like to paste this document into libreoffice for formatting. The problem is the line breaks. In libreoffice the lines are too short because of ...
1
vote
0answers
99 views

Ms-Word introduces line breaks in RTF

I'm using a template system based on RTF + Velocity. In my RTF's I've got several VTL sentences, such as: #foreach($item in $somevar.someProp)Some may-be RTF text #end If I open the RTF file with ...
0
votes
0answers
75 views

Aptana Studio 3: how to use `lf` rather than 'crlf' on windows?

I'm using Aptana Studio 3 on Win7 and I'm having some troubles when I commit files to the server - some of them must have only LF line ending and not CRLF. I know how to change this for new files ...
0
votes
2answers
96 views

Changing the Line Ending from Unix/Linux to Windows from terminal

I have a bunch of text files created in Ubuntu and when I access them on a Windows machine using DropBox they are not properly formatted because of the Line Ending difference between Unix/Linux and ...
3
votes
2answers
171 views

Trim trailing newline in one-liner bash alias

I'm trying to write a simple alias on my Mac OS X terminal to copy the current working directory. I have this: alias cpwd="echo \`pwd\` | pbcopy; echo \"Copied \`pwd\`\"" Then I can just run the ...
0
votes
2answers
68 views

Proper line-ending for an open-source PHP project

What is the proper line-ending preferences for an open-source web project? Obviously it includes source code of PHP, HTML, CSS and Javascript. The source code is managing via Github now, and there ...
0
votes
1answer
169 views

Regular Expression Needed to Replace Javascript in HTML Files

I need a regular expression that works in Notepad++ to remove multiline javascript references in several hundred HTML files. The code I want to remove looks like this: <script ...
0
votes
1answer
287 views

How to put a line break in an equation in MS Word 2007 or newer

When working with an Equation object in MS Word 2007 or newer, is there a way to force a line break inside the equation? Using Shift Enter causes a line break, but it also breaks the equation, i.e. ...
0
votes
2answers
236 views

New line when editing text files in ubuntu terminal?

I know that to symbolize a new line, I would do echo -e "line 1 \nline 2" > text.txt. I find that using \n repeatedly can be annoying, and I would to know if there a way to actually go down a line in ...
8
votes
2answers
2k views

How do I convert a bash array variable to a string delimited with newlines?

I want to write out a bash array variable to a file, with each element on a new line. I could do this with a for loop, but is there another (cleaner) way to join the elements with '\n'?
0
votes
1answer
156 views

Issues Converting Plain Text Into Microsoft Word Bulleted Lists

I'm a programmer. I hate status reports. I found a way to live with it. While I am working in my IDE ( Visual Slickedit ) I keep a plain text file open in one of the file/buffer tabs. As I finish ...
2
votes
2answers
335 views

How to print new line character with echo?

I dump a string with hexdump like this 2031 3334 2e30 0a32 2032 3331 302e 000a. It is clear that 0x0a is new line character, however, when I try to echo this string out, I always got 1 430.2 2 13.0 -- ...
2
votes
1answer
1k views

Did Mac OS Lion switch to using line feeds (LF '\n') for line breaks instead of carriage returns (CR '\r')?

I switched to Lion a while back and just noticed that when I save a text file in TextEdit, it uses LF for line breaks. I looked around everywhere I could think of on my Lion computer and could not ...
14
votes
2answers
627 views

What is the magic separator between filenames in ls output?

The output of ls (with no arguments) appears to separate filenames with linebreaks. Evidence: ls | grep foo works as expected, with grep treating each filename as a separate line of input. ls > ...
1
vote
3answers
1k views

How can I replace all \r\n with \n (using either Komodo Edit on OSX Snow Leopard, or any other tool for Mac)

Somehow, some 40 files (mostly Python modules) in my project have \r\n (Windows style) as line endings. I'd like to change them to \n (Unix style) line endings, but Komodo Edit doesn't appear to ...
1
vote
1answer
100 views

Why is xkvbd eating newlines when I it is fed from xsel?

I have this script that I assign t oa keyboard shortcut to simulate pasting through middle click: #!/bin/bash aa=0 for randstring in `xsel` do if [[ "$randstring" =~ [ěščřžýáíéúůóťďň] ]] then ...
1
vote
1answer
92 views

Delete newlines using Stream editor (sed)

I need to write a sed script that places the actual text of the subtitles in a srt file on a single line. If this text originally was split over multiple lines, the line break and possible ...
3
votes
3answers
3k views

Windows Notepad and Notepad++ show newlines in same file differently

I created a Perl script which gets some data and inserts it line by line to a text file. When I open that file with Notepad++, it appears to have an empty line separation between each two lines of ...
1
vote
3answers
6k views

How are \n and \r handled differently on Linux and Windows?

I think \n moves the needle down, and \r moves the needle to the beginning of a line (left align)? I'm not sure, though. So, if I'm wrong please correct me.... Anyway, I was told that Windows and ...
1
vote
3answers
450 views

Line feeds (0x0A) transform into carriage returns (0x0D) during email file transfer

I’m sending a file via email from a Mac (Snow Leopard) to another Mac (Lion). It turns out that all the line feeds (0x0A) in the file transform into carriage returns (0x0D), effectively turning the ...
1
vote
1answer
192 views

Avoiding newlines when copying wrapped text in Terminal.app

I have text files with lines that of length greater than my terminal width. I generally use less to view these files and often want to copy something that wraps from one line to the next. I've found ...
2
votes
3answers
47 views

Text editor that supports breaking lines in opposite direction?

I need to modify code so that the comment at the end of a line is moved to the beginning of the (new) line above. Are there editors that support this (I'm using NotePad++) an what would this be ...
1
vote
0answers
380 views

How to show CR in Geany

Can Geany be switched into a mode where it displays CR characters (but not LF characters)? Can Geany be forced to only wrap a line on LF but not on CR? Generally speaking: Geany wraps a line on all ...
6
votes
1answer
255 views

How to display new line character (^J) in emacs replace query

Say I want to replace all the new lines in my emacs buffer with the character k (wait for the -1, read the rest! :) ). I know I can type M-x replace-string RET C-q C-j RET k. It works fine. My ...
0
votes
4answers
3k views

How do I insert line breaks into a text file - not programming, not fixed width - via find & replace

This is a different question from someone else's similarly-titled question. Neither Excel nor OpenOffice allow users to specify line delimiters, so I'm trying to replace semi-colons with line ...
1
vote
1answer
366 views

How do I change or replace all instances of a character in a text file to a newline/line break/EOL in Notepad2 or Notepad++?

I tried Notepad2's 'Replace Text' function, but I don't know what to put in the 'Replace with' field. The OS I'm using is Windows 7.
3
votes
3answers
1k views

how to find (grep) paragraph start with word and ending with other word and ignore new line?

I want to find a paragraph is a list of files. For example an SQL statement which looks like: upadte b_table set number = 100014 where id in ( select number_desc from t_table ...
0
votes
1answer
777 views

Word 2007 line breaks

I am just using the default template in Word 2007, but it seems something is strange with linebreaks. If I copy text to a formfield where there will be a linespace in word there will only be a ...
2
votes
2answers
340 views

Ignore carriage return for a specific file with Git

I use multiple environments thanks to virtual machines, and my code directory is shared between them. I also like my code to have the native (host) line endings. When I'm on a Windows host, I ...
0
votes
2answers
604 views

How to fix Windows new line character on SFTP synchronization in Eclipse (pdt)

I have a problem with Windows new line characters being introduced into text files on Eclipse SFTP synchronization (via JCraft's SFTP plugin). I've set "New text file line delimiter" to Unix and have ...
1
vote
1answer
322 views

How to convert newlines in a set of files?

I have set of files with either Windows newlines (CRLF) or Unix newlines (LF). How can I convert all newlines in all files to Mac newlines (CR)?
4
votes
3answers
1k views

Join lines inside paragraphs in vim

Suppose you've typed a long document in vim with automatic line breaking on, so all the lines have been broken at, say, 79 characters. You may have even applied formatting to the whole document to ...
0
votes
2answers
462 views

Mac OS X terminal.app sometimes sometimes starts interpreting newlines differently! Can this be fixed?

A few times now, I've had Mac OS X Terminal end up in an odd state, whereby newlines aren't interpreted as they normally are. It's as if they're doing the line feed part, but not the carriage return. ...
3
votes
1answer
490 views

newline in bash variable

My script contains something like this: ifc=$(ifconfig) With this, the ifc variable contains the output of the command ifconfig but without newlines. So, when I print it with echo $ifc I get only ...
0
votes
1answer
535 views

How can I make grep use CRLF (and not LF) as a newline?

I need to grep through a file where not only are lines terminated by a CRLF, but they might also have several LFs on each line. How can I make grep ignore LFs unless there's a CR in front of them? ...
0
votes
0answers
698 views

flat file line breaks lost via unix mail

I have a flat file with lines of data. When I pipe it through /bin/mail to myself, however, the text in my MS Outlook mail box will have certain lines next to each other (EOL lost). For example, the ...
6
votes
3answers
8k views

Grep multiline pattern

How do I search for a phrase over multiple lines? E.g. Lets have the phrase "my ice tea" then it may be wrapped in text files: as js skdfh dfh djh sf my ice tea. grep will not match since there is ...
6
votes
1answer
2k views

How can I use newline with the Find-And-Replace in Visual Studio?

I've become rather fond of the "Find-And-Replace" function in Visual Studio. The function lets me replace phrases, words, symbols, or whatever you can type into the textbox on the screen. How can I ...
5
votes
8answers
2k views

Is there a Bash command to convert \r\n to \n?

Is there a Bash command to convert \r\n to \n? When I upload my scripts from Windows to Linux, I need a utility like this to make things work.
2
votes
3answers
6k views

How to put a newline in dos command line as part of the option

I tried copy and paste this to the command line but every newline is recognized as a new command start and not as part of the option: "command -option:text whatever" between text and whatever is a ...
1
vote
0answers
48 views

Is there a config value in Wine to force Enter to send CR+LF?

I'm pretty new to Wine and I'm trying to use an IM client which is required for my work. When I hit 'Enter' to send a chat message, the characters indicating a new line are not being correctly ...
5
votes
2answers
6k views

Replace newline character with another in Word 2007

Using Microsoft Word 2007, is it possible to replace the newline character (\n) with some other character? What about vice versa? (That is replace a character with the newline character).
0
votes
1answer
462 views

Perl -e insert new line [duplicate]

Possible Duplicate: insert newline in perl -e statement Hi If I do this in bash perl -e '$x; $y' Is there any character that can behave like a new line? i.e. I want to do perl -e '$x; ...
1
vote
5answers
2k views

Insert a newline in a perl -e statement?

Consider the following Perl one-liner: perl -e '$x; $y;' I'm executing this command in bash and I'd like to insert a newline (\n) between the ; and $y. I'd like to know how to do this in two ...
15
votes
3answers
14k views

Vim: show line feeds & carriage-return

How can I display line feeds and/or carriage-return characters in vi/vim? I know that set list shows all the whitespace characters (?), it also replaces tabs \t etc (but that's not what I want). ...
2
votes
2answers
2k views

How can I make a newline in an Openoffice.org Calc formula?

I have a text cell I2 and a text cell J2. I want cell K2 to be the contents of I2 concatenated with a newline and the contents of J2. How can I do this? I2 J2 K2 big dog big dog ...

1 2