Re: newbie question: remove lines from text-file
On 2006-08-30, Martin Jørgensen wrote:
> "Chris F.A. Johnson" <cfajohnson@gmail.com> writes:
>
>> On 2006-08-29, Martin Jørgensen wrote:
>>>
>>> Oh... What's the name of my regexp parser if I type sed '/\(\.\{9\}
>>> \)\{6\}/d' in bash or a script?
>>
>> sed
>
> Is awk also a regexp parser?
Yes.
> Is the shell? Like bash?
Bash can use regular expressions in the non-portable [[ ... ]]
syntax. See the man page for more info.
--
Chris F.A. Johnson, author <http://cfaj.freeshell.org>
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
===== My code in this post, if any, assumes the POSIX locale
===== and is released under the GNU General Public Licence
|