OS X 10.11.6에서는 터미널에서 출력 된 파일 경로 줄을 다른 명령의 입력으로 사용하고 싶습니다. 현재 삼중 클릭을 클릭하면 줄이 선택되지만 줄 바꿈을 포함하여 후행 공백으로 - 명령에서이 경로를 사용하기가 어렵습니다. 다음은 문제를 설명하는 예제 세션입니다.
~/testdir : ls -1 # there is a single file called "foo bar"
foo bar
# I selected the above output line with a triple click.
# This selected the line including newline at the end.
# I copy this to clipboard (Cmd-c).
# I then call wc below, with an open quote.
# I paste the output(Cmd-v)
# I close the quote in the next line.
# This gives an error as shown below
~/testdir : wc "foo bar
> "
wc: foo bar
: open: No such file or directory
# Now I use up arrow to recall last line, and delete the whitespace before closing quote
# This works fine
~/testdir : wc "foo bar"
1 2 12 foo bar
매번이 중복 된 노력을 피하는 방법 - 즉, 공백없이 줄을 선택하는 방법은 무엇입니까? 푸 바 선택 되나요?