Maximum limit of pipes in a single command ?
Hi all, Can anyone tell me what is the maximum limit of number of pipes that can be opened through a single command ? e.g; # ||| .| regards, Mahesh
Re: Maximum limit of pipes in a single command ?
> For what is worth, on my system (bash 3.2.33(1)-release) I can have 3332 > pipes before bash gives an error. I used this command: > Thanks Dave for informing. > > Why do you want to know? > I have a bash script which replaces all tokens in a large with an identifier (an integer) by doing 'sed' in a loop. I modified the script a little bit to concatenate all "s//" using pipes and ran single 'sed' at the end. But its not working. Thats why I want to know how many pipes can I open through a single command. Also, I have tried concatenated the replace commands using ";". Even that is not working. -Mahesh
Re: Maximum limit of pipes in a single command ?
> sed's "s" command should be terminated with a final "/". If nothing > comes after the "s" command, then you can leave out the final "/", but > in your case, you need it: > sed 's/old1/new1/;s/old2/new2/;...' > I followed the syntax properly. But thats not the problem. Problem is how long can the concatenated string can be ? -Mahesh