-
-
Save tjt263/ed3e3c35f3dd6119d600 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Last login: Wed Mar 2 13:47:01 on ttys010 | |
---------------------------------------------------------------------------------------14:10:02 | |
tjt263@osx:~$ if [ -d "$(whereis scp") ]; then echo a | |
> ; | |
> | |
---------------------------------------------------------------------------------------14:16:37 | |
tjt263@osx:~$ if [ -d "$(whereis scp") ] ; then echo a | |
> | |
> | |
> -bash: unexpected EOF while looking for matching `"' | |
-bash: syntax error: unexpected end of file | |
---------------------------------------------------------------------------------------14:16:51 | |
tjt263@osx:~$ if [ -d "$(whereis scp") ] ; then echo 'a' | |
> | |
---------------------------------------------------------------------------------------14:17:07 | |
tjt263@osx:~$ if [ -d "$(whereis scp") ] then echo 'a' | |
> l | |
> ? | |
> '' | |
> " | |
> " | |
> ' | |
> ' | |
> | |
---------------------------------------------------------------------------------------14:17:36 | |
tjt263@osx:~$ if [ -d "$(whereis scp") ] then echo "a" | |
> -bash: unexpected EOF while looking for matching `"' | |
-bash: syntax error: unexpected end of file | |
---------------------------------------------------------------------------------------14:17:55 | |
tjt263@osx:~$ if [ -d "$(whereis scp") ] ; then echo 'a' ; fi | |
> done | |
> | |
---------------------------------------------------------------------------------------14:18:27 | |
tjt263@osx:~$ if [ -d "$(whereis scp") ] ; then echo 'a' ; fi ; done | |
> | |
---------------------------------------------------------------------------------------14:18:37 | |
tjt263@osx:~$ if [ -d "$(whereis scp") ] | |
> if [ -d "$(whereis scp)" ]; then echo a | |
> fi | |
> done | |
> | |
---------------------------------------------------------------------------------------14:21:11 | |
tjt263@osx:~$ if [ -d "$(whereis scp)" ] | |
> then | |
> echo yes | |
> else | |
> echo no | |
> fi | |
no | |
---------------------------------------------------------------------------------------14:22:01 | |
tjt263@osx:~$ whereis scp | |
/usr/bin/scp | |
---------------------------------------------------------------------------------------14:22:19 | |
tjt263@osx:~$ if [ -e "$(whereis scp)" ]; then echo yes; else echo no; fi | |
yes | |
---------------------------------------------------------------------------------------14:22:33 | |
tjt263@osx:~$ apropos scp | |
libssh2_scp_recv(3) - request a remote file via SCP | |
libssh2_scp_recv2(3) - request a remote file via SCP | |
libssh2_scp_send(3) - convenience macro for libssh2_scp_send_ex(3) calls | |
libssh2_scp_send64(3) - Send a file via SCP | |
libssh2_scp_send_ex(3) - Send a file via SCP | |
pscp(1) - command-line SCP (secure copy) / SFTP client | |
CURLOPT_SSH_AUTH_TYPES(3) - set desired auth types for SFTP and SCP | |
scp(1) - secure copy (remote file copy program) | |
wcpcpy(3), wcpncpy(3), wcscasecmp(3), wcscat(3), wcschr(3), wcscmp(3), wcscpy(3), wcscspn(3), wcsdup(3), wcslcat(3), wcslcpy(3), wcslen(3), wcsncasecmp(3), wcsncat(3), wcsncmp(3), wcsncpy(3), wcsnlen(3), wcspbrk(3), wcsrchr(3), wcsspn(3), wcsstr(3), wmemchr(3), wmemcmp(3), wmemcpy(3), wmemmove(3), wmemset(3) - wide character string manipulation operations | |
---------------------------------------------------------------------------------------14:22:50 | |
tjt263@osx:~$ wgich scp | |
-bash: wgich: command not found | |
---------------------------------------------------------------------------------------14:23:03 | |
tjt263@osx:~$ which scp | |
/usr/bin/scp | |
---------------------------------------------------------------------------------------14:23:08 | |
tjt263@osx:~$ if [ -e "$(whereis scp)" ]; then; echo "yes"; else; echo "no"; fi | |
-bash: syntax error near unexpected token `;' | |
---------------------------------------------------------------------------------------14:25:34 | |
tjt263@osx:~$ if [ -e "$(whereis scp)" ]; then echo "yes"; else; echo "no"; fi | |
-bash: syntax error near unexpected token `;' | |
---------------------------------------------------------------------------------------14:25:40 | |
tjt263@osx:~$ if [ -e "$(whereis scp)" ]; then; echo "yes"; else echo "no"; fi | |
-bash: syntax error near unexpected token `;' | |
---------------------------------------------------------------------------------------14:26:06 | |
tjt263@osx:~$ if [ -e "$(whereis scp)" ]; then echo "yes"; else echo "no"; fi | |
yes | |
---------------------------------------------------------------------------------------14:26:13 | |
tjt263@osx:~$ if [ -e "$(whereis scp)" ]; then echo "true"; else; echo "false"; fi | |
-bash: syntax error near unexpected token `;' | |
---------------------------------------------------------------------------------------14:27:49 | |
tjt263@osx:~$ if [ -e "$(whereis scp)" ]; then echo "true"; else echo "false"; fi | |
true | |
---------------------------------------------------------------------------------------14:27:57 | |
tjt263@osx:~$ if [ -e "$(whereis scp)" ]; then echo "true"; (whereis scp); else echo "false"; fi | |
true | |
/usr/bin/scp | |
---------------------------------------------------------------------------------------14:29:23 | |
tjt263@osx:~$ if [ -e "$(whereis scp)" ]; then echo -n "true "; (whereis scp); else echo "false"; fi | |
true /usr/bin/scp | |
----------------------------------------------------------------------------------------------------14:30:01 | |
tjt263@osx:~$ if [ -e "$(whereis scp)" ]; then echo "$(whereis scp) exists"; else echo "false"; fi | |
/usr/bin/scp exists | |
----------------------------------------------------------------------------------------------------14:32:10 | |
tjt263@osx:~$ if [ -e "$(which scp)" ]; then echo "\"$(whereis scp)\" exists"; else echo "false"; fi | |
"/usr/bin/scp" exists | |
----------------------------------------------------------------------------------------------------14:34:41 | |
tjt263@osx:~$ if [ -e "$(which scp)" ]; then echo ""\""$(whereis scp)"\"" exists"; else echo "false"; fi | |
"/usr/bin/scp" exists | |
----------------------------------------------------------------------------------------------------14:35:21 | |
tjt263@osx:~$ if [ -e "$(whereis scp)" ]; then echo "$(whereis scp) exists"; else echo "false"; fi | |
/usr/bin/scp exists | |
----------------------------------------------------------------------------------------------------14:35:50 | |
tjt263@osx:~$ if [ -e "$(whereis scp)" ]; then echo "true"; (whereis scp); else echo "false"; fi | |
true | |
/usr/bin/scp | |
----------------------------------------------------------------------------------------------------14:36:27 | |
tjt263@osx:~$ if [ -e "$(whereis scp)" ]; then echo -n "true "; (whereis scp); else echo "false"; fi | |
true /usr/bin/scp | |
----------------------------------------------------------------------------------------------------14:36:35 | |
tjt263@osx:~$ if [ -e "$(whereis scp)" ]; then echo -n "true "; (whereis scp); else echo "false"; fi | |
true /usr/bin/scp | |
----------------------------------------------------------------------------------------------------14:53:04 | |
tjt263@osx:~$ ^whereis^which | |
if [ -e "$(which scp)" ]; then echo -n "true "; (whereis scp); else echo "false"; fi | |
true /usr/bin/scp | |
----------------------------------------------------------------------------------------------------14:53:27 | |
tjt263@osx:~$ ^whereis^which | |
if [ -e "$(which scp)" ]; then echo -n "true "; (which scp); else echo "false"; fi | |
true /usr/bin/scp | |
----------------------------------------------------------------------------------------------------14:53:43 | |
tjt263@osx:~$ if [ -e "$(which scp)" ]; then echo -n "true "; (which scp); fi | |
true /usr/bin/scp | |
----------------------------------------------------------------------------------------------------14:54:31 | |
tjt263@osx:~$ if [ -e "$(which scp)" ]; then echo -n "true "; (which scp); fi | |
true /usr/bin/scp | |
----------------------------------------------------------------------------------------------------14:55:35 | |
tjt263@osx:~$ if [ -e "$(which scp)" ]; then echo -n "true "; $(which scp); fi | |
true usage: scp [-12346BCEpqrv] [-c cipher] [-F ssh_config] [-i identity_file] | |
[-l limit] [-o ssh_option] [-P port] [-S program] | |
[[user@]host1:]file1 ... [[user@]host2:]file2 | |
----------------------------------------------------------------------------------------------------14:55:43 | |
tjt263@osx:~$ if [ -e "$(which scp)" ]; then echo -n "true "; "$(which scp)"; fi | |
true usage: scp [-12346BCEpqrv] [-c cipher] [-F ssh_config] [-i identity_file] | |
[-l limit] [-o ssh_option] [-P port] [-S program] | |
[[user@]host1:]file1 ... [[user@]host2:]file2 | |
----------------------------------------------------------------------------------------------------14:55:53 | |
tjt263@osx:~$ if [ -e "$(which scp)" ]; then echo -n "$(which scp)"; fi | |
/usr/bin/scp----------------------------------------------------------------------------------------------------14:56:38 | |
tjt263@osx:~$ if [ -e "$(which scp)" ]; then echo "$(which scp)"; fi | |
/usr/bin/scp | |
----------------------------------------------------------------------------------------------------14:56:45 | |
tjt263@osx:~$ if [ -e "$(which scp)" ]; then echo "$(which scp)"; fi | |
/usr/bin/scp | |
----------------------------------------------------------------------------------------------------14:56:55 | |
tjt263@osx:~$ if [ -e "$(which scp)" ]; then echo "$(which scp)"; fi; | |
/usr/bin/scp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment