3 Grammar and code formatting for commands.
source | link

Is it possible to redirect a command's output to cd? For example, I searched for a directory using locate and got the path to it. Now, instead of writing a cd path, can I redirect the locate output to cd?

I tried this:

oliver:~$$ locate Descargas | grep Descargas$
/home/oliver/Descargas
oliver:~$$ locate Descargas | grep Descargas$ | cd
oliver:~$$ locate Descargas | grep Descargas$ > cd
oliver:~$$ locate Descargas | grep Descargas$ < cd
/home/oliver/Descargas
oliver:~$$ 

No luck. This probably isn't particularly useful, but I'm curious.

Is it possible to redirect a command's output to cd? For example, I searched for a directory using locate and got the path to it. Now, instead of writing a cd path, can I redirect the locate output to cd?

I tried this:

oliver:~$ locate Descargas | grep Descargas$
/home/oliver/Descargas
oliver:~$ locate Descargas | grep Descargas$ | cd
oliver:~$ locate Descargas | grep Descargas$ > cd
oliver:~$ locate Descargas | grep Descargas$ < cd
/home/oliver/Descargas
oliver:~$ 

No luck. This probably isn't particularly useful, but I'm curious.

Is it possible to redirect a command's output to cd? For example, I searched for a directory using locate and got the path to it. Now, instead of writing a cd path, can I redirect the locate output to cd?

I tried this:

$ locate Descargas | grep Descargas$
/home/oliver/Descargas
$ locate Descargas | grep Descargas$ | cd
$ locate Descargas | grep Descargas$ > cd
$ locate Descargas | grep Descargas$ < cd
/home/oliver/Descargas
$ 

No luck. This probably isn't particularly useful, but I'm curious.

2 Grammar and code formatting for commands.
source | link

redirection How do I redirect output to cd command?

isIs it possible to redirection the output ofredirect a commandcommand's output to "cd"cd? For example, I have searched for a directory using locatelocate and got the path to it. Now, instead of writing cda cd path, can I redirect the locate output to cdcd?

I'veI tried this:

oliver@nelloliver:~$ locate Descargas | grep Descargas$
/home/oliver/Descargas
oliver@nelloliver:~$ locate Descargas | grep Descargas$ | cd
oliver@nelloliver:~$ locate Descargas | grep Descargas$ > cd
oliver@nelloliver:~$ locate Descargas | grep Descargas$ < cd
/home/oliver/Descargas
oliver@nelloliver:~$ 

But noNo luck. ItThis probably isn't something veryparticularly useful, but I'm curious

Thanks.

redirection to cd command

is it possible to redirection the output of a command to "cd"? For example, I have searched for a directory using locate and got the path to it. Now, instead of writing cd path, can I redirect the output to cd?

I've tried this:

oliver@nell:~$ locate Descargas | grep Descargas$
/home/oliver/Descargas
oliver@nell:~$ locate Descargas | grep Descargas$ | cd
oliver@nell:~$ locate Descargas | grep Descargas$ > cd
oliver@nell:~$ locate Descargas | grep Descargas$ < cd
/home/oliver/Descargas
oliver@nell:~$ 

But no luck. It probably isn't something very useful but I'm curious

Thanks

How do I redirect output to cd?

Is it possible to redirect a command's output to cd? For example, I searched for a directory using locate and got the path to it. Now, instead of writing a cd path, can I redirect the locate output to cd?

I tried this:

oliver:~$ locate Descargas | grep Descargas$
/home/oliver/Descargas
oliver:~$ locate Descargas | grep Descargas$ | cd
oliver:~$ locate Descargas | grep Descargas$ > cd
oliver:~$ locate Descargas | grep Descargas$ < cd
/home/oliver/Descargas
oliver:~$ 

No luck. This probably isn't particularly useful, but I'm curious.

1
source | link

redirection to cd command

is it possible to redirection the output of a command to "cd"? For example, I have searched for a directory using locate and got the path to it. Now, instead of writing cd path, can I redirect the output to cd?

I've tried this:

oliver@nell:~$ locate Descargas | grep Descargas$
/home/oliver/Descargas
oliver@nell:~$ locate Descargas | grep Descargas$ | cd
oliver@nell:~$ locate Descargas | grep Descargas$ > cd
oliver@nell:~$ locate Descargas | grep Descargas$ < cd
/home/oliver/Descargas
oliver@nell:~$ 

But no luck. It probably isn't something very useful but I'm curious

Thanks