find -print0 -name "* *" (whitespace)

Is there a way to pass all filenames containing whitespace to the pipe, or at least those containing spaces? To that end I attempted: ~/Desktop> find . -type f -mindepth 1 -maxdepth 1 -name "* *" | wc -c 0 ~/Desktop> find . -type f -mi...
more »

2017-10-10 03:10 (1) Answers

Can't explain leading whitespace in FlowDocument

I'm using a conventional FlowDocument setup with a Floater and a Run to wrap text around an image. I get a leading whitespace that I don't understand. Can anybody help? (Before anybody suggests removing the Run: I want to use an actual Run element he...
more »

2017-08-11 21:08 (1) Answers

Rule for ignoring whitespaces in C expression

In many of the C expressions, white spaces are ignored (example: in case of a**b, where b is a pointer, whitespace is ignored) . But in few cases they cannot be ignored. We get many SO posts on x+++y and related (c++ spaces in operators , what are th...
more »

2017-08-05 19:08 (1) Answers

Don't break words at whitespace with CSS

I have a div with a set width. The way text is broken by default is at a white space. Is there any way to set the style of my element, so that the text is broken at any given character to fill out the maximum space available? Thanks in advance! ...
more »

2017-04-07 14:04 (1) Answers

Ruby Dates Calculation : Weird Outputs

I have observed that a ruby expression calculating days difference gives different output dependent on the spaces in the expression. #=> #<Date: 2017-01-06 ((2457760j,0s,0n),+0s,2299161j)> ( - 60).to_s #=>...
more »

2017-01-06 11:01 (2) Answers

space as parameter to program from bash

I'm running application from bash, like this ./app_name var1 var2 $var3 where var3 is --a b, --c d and where b and d don't contain spaces. Now I want to add parameter, --e f, to $var3, but f contains whitespace. The problem is that I'm trying to ...
more »

2016-11-12 19:11 (1) Answers

How to change tab width in git diff?

The standard spacing for a tab is 8 characters. I prefer to view that as 4 characters in my editors and console. I can easily change this default behavior on console with the tabs command: tabs -4 However, when using git diff or git show it displ...
more »

2016-09-06 17:09 (1) Answers

Java or Eclipse 'fails' on Whitespaces(?)

After many questions asked by other users this is my first one for which I was not able to find a fitting answer. However, the problem sounds weird and actually is: I have had more than one situation in which whitespaces were part of the problem and...
more »

2016-08-13 15:08 (1) Answers

Remove spaces from all elements of an array

I've sample file named '' like below, with leading and trailing spaces: Hi | hello how | are you? I need | to remove | leading & trailing spaces | where ever | it's located I need to put the elements separated by "|" in array wit...
more »

2016-06-30 11:06 (3) Answers

Is there a Python constant for Unicode whitespace?

The string module contains a whitespace attribute, which is a string consisting of all the ASCII characters that are considered whitespace. Is there a corresponding constant that includes Unicode spaces too, such as the no-break space (U+00A0)? We ca...
more »

2016-06-19 04:06 (1) Answers

Remove white spaces from a variable

I want to remove the white spaces from a variable in Linux Shell and echo it on the terminal. Following is my code: echo "Enter your full name" read fname $fname | sed "s/ //g" When I run the code it shows command not found. ...
more »

2016-05-28 09:05 (3) Answers