Re: usage of tr

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

 



On Tue, Apr 8, 2008 at 5:27 AM, mark <m.roth2006@xxxxxxx> wrote:

> Aaron Bliss wrote:
> > Hi everyone,
> > I'm trying to figured out how to remove and instance of ^ followed by
> > and upper case H from a file.When I use tr -d [^H] tr is removing the
> > sequences with ^ characters as well as any upper case H's found in the
> > file.   Any ideas?  thanks.
>


root@server [/var/log/snort]# cat 1
lkj^Hdfdsfj sdfjs fdjsd; ^H sdlkfskj ^H
dsffs^Hk f sdjf s^H
root@server [/var/log/snort]#
root@server [/var/log/snort]#

root@server [/var/log/snort]# replace "^" "" -- 1
1 converted

root@server [/var/log/snort]#
root@server [/var/log/snort]# cat 1
lkjHdfdsfj sdfjs fdjsd; H sdlkfskj H
dsffsHk f sdjf sH

root@server [/var/log/snort]#
root@server [/var/log/snort]# rm -f 1
root@server [/var/log/snort]#


Does this help?
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux