# echo command result

**URL:** <https://community.unix.com/t/echo-command-result/157329>\
**Category:** UNIX for Dummies Questions & Answers\
**Created:** [November 10, 2005, 2:10am UTC](https://community.unix.com/t/echo-command-result/157329 "2005-11-10T02:10:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![umen](https://community.unix.com/letter_avatar/umen/32/5_5575768a8748004e209b776fc1b2916d.png) [@umen](https://community.unix.com/u/umen)\
**Post date:** [November 10, 2005, 2:10am UTC](https://community.unix.com/t/echo-command-result/157329/1 "2005-11-10T02:10:08Z")

</div>

hello  
how can i print to screen the result of this command ?  
echo "pwd | sed 's/.\*foo//'"  
when i type it im geting it printed as string "pwd | sed 's/.\*DevEnv//'"  
and not the result of the operetion.  
tnx

---

<div class="post-metadata">

**Author:** ![vino](https://community.unix.com/user_avatar/community.unix.com/vino/32/156_2.png) [@vino](https://community.unix.com/u/vino)\
**Post date:** [November 10, 2005, 2:28am UTC](https://community.unix.com/t/echo-command-result/157329/2 "2005-11-10T02:28:07Z")

</div>

> [@umen](#):
>
> hello  
> how can i print to screen the result of this command ?  
> echo "pwd | sed 's/.\*foo//'"  
> when i type it im geting it printed as string "pwd | sed 's/.\*DevEnv//'"  
> and not the result of the operetion.  
> tnx

How did

```plaintext
echo "pwd | sed 's/.*foo//'"

```

appear as

```plaintext
pwd | sed 's/.*DevEnv//'

```

It should be

```plaintext
echo `pwd` | sed 's/.*foo//'

```

---

<div class="post-metadata">

**Author:** ![Perderabo](https://community.unix.com/user_avatar/community.unix.com/perderabo/32/27_2.png) [@Perderabo](https://community.unix.com/u/Perderabo)\
**Post date:** [November 10, 2005, 7:39am UTC](https://community.unix.com/t/echo-command-result/157329/3 "2005-11-10T07:39:35Z")

</div>

Just do:  
pwd | sed 's/.\*foo//'  
the output will go to stdout.
