zlacker

[parent] [thread] 9 comments
1. quacke+(OP)[view] [source] 2013-06-26 04:40:42
Unless your ssh'd into a machine, it's annoying to type long dir's. What's worse is compensating for spaces in filenames.
replies(2): >>freewo+b >>J_Darn+jo
2. freewo+b[view] [source] 2013-06-26 04:45:28
>>quacke+(OP)
Thats what tab completion is for.
replies(1): >>quacke+L
◧◩
3. quacke+L[view] [source] [discussion] 2013-06-26 05:01:38
>>freewo+b
Thank you freework, didn't know about that one (embarrassing as it is to admit).

Still sucks dealing with spaces when it comes to command processes like ffmpeg -i <no_tab>...but awesome for cd'ing or ls'ing!

replies(1): >>kanema+s1
◧◩◪
4. kanema+s1[view] [source] [discussion] 2013-06-26 05:15:18
>>quacke+L
Just prefix the space with a backslash. Eg: ``$ ls /foo/bar/my\ directory/``. With that backslash in place, you can continue your tab-completion.
replies(1): >>iSnow+R2
◧◩◪◨
5. iSnow+R2[view] [source] [discussion] 2013-06-26 05:55:40
>>kanema+s1
Still, on some international keyboards, backspace is hard to reach, eg. on a German Mac keyboard, is it <alt><shift>7.

So don't put spaces in path names, it's a bitch to work with.

replies(1): >>emillo+h7
◧◩◪◨⬒
6. emillo+h7[view] [source] [discussion] 2013-06-26 07:46:35
>>iSnow+R2
You can quote the space:

    mkdir x\ y
    cd x' 'y
(or the entire part: cd 'x y')
replies(1): >>quacke+x8
◧◩◪◨⬒⬓
7. quacke+x8[view] [source] [discussion] 2013-06-26 08:17:18
>>emillo+h7
Yup, that's what I do too, or %20 if its a url
8. J_Darn+jo[view] [source] 2013-06-26 13:14:12
>>quacke+(OP)
Unix/Linux/whatever should have just forbidden spaces in filenames in the first place since none of the basic tools make it easy iterate over a list of filenames with spaces correctly.
replies(1): >>gizmo6+RG
◧◩
9. gizmo6+RG[view] [source] [discussion] 2013-06-26 16:05:30
>>J_Darn+jo
At least UNIX doesn't have a space in the path of the main programs directory (I'm looking at you Windows).

Also, many of the basic tools have a -0 option which uses the null character to replace many uses of space. Still far from an adequate solution though.

replies(1): >>quacke+rI
◧◩◪
10. quacke+rI[view] [source] [discussion] 2013-06-26 16:23:53
>>gizmo6+RG
Ohh yeah! This is where my initial frustrations have always been for spaces...mounting an NTFS-3G or URL encodings.
[go to top]