The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
42 views

Split text file by whitespace

I have a very large text file with multiple columns of data. I.e. 1312.4123 asdkofADkofaO213 dakofasdjodas Fri Mar 2013 15:23:11 .. .. .. etc. I wish to split this text file into multiple subsets, ...
0
votes
0answers
19 views

Indexing text with letter spacing emphasis

In the past I have sometimes used letter spacing to emphasize text. This is some important note about a previously performed task where the i m p o r t a n t k e y w o r d s are emphasized by l ...
1
vote
1answer
55 views

How to avoid trailing spaces when you copy something from terminal?

I often copy a code snippet from a SSH terminal session where i'm logged in to some remote server and have a file opened in vim, for example to paste it here into an answer at SO. It frequently ...
1
vote
2answers
65 views

Can not stat over a file name having space in it

I m very new to shell scripting and writing a script for a project. I am having a problem while doing "stat" on a file name, to check size, which has spaces in it. The problem is that I can not write ...
0
votes
0answers
109 views

How can I specify an /EXCLUDE file with spaces in it to xcopy?

I have tried to specify an /EXCLUDE filename with spaces in it to xcopy, but it always chokes. How can I specify such a path to xcopy without copying the /EXCLUDE files into the current directory and ...
3
votes
2answers
167 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 ...
2
votes
1answer
179 views

Vim, listchars not displaying tabs at the begin of the line

I use listcharsin my .vimrcto see the whitespace. My current setting is : set list listchars=nbsp:¤,tab:>-,trail:¤,extends:>,precedes:< And that give to me, for example this : >---Foo ...
12
votes
4answers
495 views

How to start/open a file/folder that contains space in its name through command-line?

I'm trying to use the start command in the command prompt to open files and folders, but I'm unable to open files and folders that contain space(s) in their name. I have tried the following queries ...
1
vote
1answer
79 views

How to reclaim white space in a converted microsoft word document?

After converting a document from pdf to docx I find that it's very difficult to edit anything without damaging the layout because I can't write over the existing white space. Like for example: ...
0
votes
3answers
333 views

AppleScript: how do I store folders' pathnames into an array, replacing spaces with “\ ”?

I have a folder and inside this folder there's a bunch of subfolders. Using AppleScript I wish to store the pathnames of these subfolders into an array. Here's my problem: each pathname containing " ...
2
votes
2answers
675 views

Modify Sublime Text 2 whitespace representation?

Is there a way to modify the whitespace representation characters so I can change it from dots and dashes to something else? Because I currently have whitespace characters being drawn always, it ...
1
vote
1answer
596 views

How to remove leading whitespace from file and folder names?

How to remove leading whitespace from file and folder names? (I'm running OS X 10.6 Snow Leopard.) As provided below by @Lri I was able to remove trailing whitespace using this: #!/bin/bash ...
0
votes
2answers
193 views

Search recursively for a string containing whitespaces

I want to search for "this table..." string under /home/myuser directory recursively, ie in all files under /home/myuser and in all directories and sub-directories under /home/myuser. /home/myuser ...
3
votes
1answer
140 views

What is the whitespace indicated with a dot in TextMate?

In the screenshot of TextMate below, I turned on "Show Invisibles." What's the whitespace character on the third line? Text I imported from somewhere has these dot spaces, and I'm trying to figure ...
0
votes
1answer
341 views

How to remove trailing whitespace from file extensions and folders snow?

How can I remove trailing whitespace from file extensions and folders in snow leopard ? Ideally I would be able to run a single command within a directory that would search and remove for all files ...
0
votes
1answer
362 views

Word 2010: Remove space before citation

When I insert a citation into my document (testing with the IEEE 2006 style here), I end up with something like this: This is some text ( [1], [2]) As you can see Word 2010 adds a space between ...
1
vote
4answers
278 views

sed removal of whitespace

I find that sed often fails to pattern-match whitespace. Consider the following examples: echo 'A B C' | sed 's/[ \t]*//g' ABC echo -e 'A\tB\tC' | sed 's/[ \t]*//g' A B C perl ...
0
votes
0answers
789 views

Can't run Katawa Shojo game, failes with “undefined symbol: SDL_RWFromFile” [closed]

I was trying to run the freeware game Katawa Shojo, and I cannot run the Katawa Shojo.sh file. One problem is that when the filepath has spaces (it comes in a folder 'Katawa Shojo' to start with) it ...
0
votes
2answers
256 views

How to make VI use spaces instead of tab even when I press backspace key?

When I tried to use yml, it requires NO TAB, ONLY SPACE policy. I realized I need a special setting for this. Anyway, I can't live without tabs. So I want to make my VI behave like this. When I ...
2
votes
3answers
3k views

Merging and re-formatting paragraphs in Microsoft Word 2007

After a copy/paste mishap in Microsoft Word 2007, I ended up with text looking like this: This line breaks up here continues here, and so on here, when it should all be in a single line ...
2
votes
1answer
92 views

Remove Lines in VIM with Only Whitespace

Is there a vim idiom for removing all lines from a file that have only whitespace (including newlines)?
5
votes
2answers
197 views

Is there a way to not select whitespace after a word when double-clicking?

In Windows, it seems the default behavior when double-clicking a word is to select the word, and any whitespace following the word (spaces or tabs). You can see this behavior across all programs, so ...
2
votes
1answer
4k views

delete whitespace left and right in notepad++

In Notepad++, is there a hotkey to wipe all white space left and right of the cursor? I'd imagine it would be the same as "delete current word", but I can't find it. Ctrl + Del deletes to the end of ...
15
votes
2answers
1k views

Jump to first non-whitespace character in line in emacs

I'm looking for the emacs equivalent of vi's ^. How can I move my cursor to the first non-whitespace character in a line?
1
vote
1answer
3k views

sed to remove all whitespace from a line

I am wanting to use sed to remove all space characters from a text file. At present I am using this: sed 's/ //' test.txt > test2.txt This works in the sense that it removes the first space ...
35
votes
2answers
35k views

How to match whitespace in sed?

How can I match whitespace in sed? In my data I want to match all of 3+ subsequent whitespace characters (tab space) and replace them by 2 spaces. How can this be done?
4
votes
1answer
2k views

how can I tell vimdiff to ignore whitespace?

I made a number of changes in a file I'm working on, including indentation changes. I'm using vimdiff to compare the file to the original version, and I don't want to see these changes, since they're ...