Walt Mankowski via plug on 26 Apr 2023 19:14:06 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Splitting strings in bash


But the right side of a pipe should be stdin!

At any rate, the fact that it's using a subshell explains it.

On Wed, Apr 26, 2023 at 05:23:12PM -0400, Ron Guilmet via plug wrote:
> The one thing I thought of is that a pipe takes stdout while read takes stdin, I believe.
> 
> Ron Guilmet
> ronpguilmet@gmail.com
> 
> 
> 
> 
> 
> 
> > On Apr 26, 2023, at 3:46 PM, Walt Mankowski via plug <plug@lists.phillylinux.org> wrote:
> > 
> > So that solves my problem, but I'm still confused. Those two commands
> > seem to me like they should be identical. Why doesn't the first one work?
> 

> ___________________________________________________________________________
> Philadelphia Linux Users Group         --        http://www.phillylinux.org
> Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
> General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug