Re: File Manipulation in Linux



In news:eph5v131g79@xxxxxxxxxxxxxxxxxx,
Joe Cipale <joec@xxxxxxxxxxx> wrote:

I would have offered to use a combo of 'awk' and 'grep'. One script
and multiple output files

Why use grep? awk has excellent pattern-matching capabilities:

awk '/name_/ {print $3}' file1 > file2
.



Relevant Pages

  • Re: File Manipulation in Linux
    ... Why use grep? ... awk has excellent pattern-matching capabilities: ... That is the cool thing about Unix/Linux: ...
    (linux.redhat)
  • Re: File Manipulation in Linux
    ... Why use grep? ... awk has excellent pattern-matching capabilities: ... That is the cool thing about Unix/Linux: For each problem there are AT LEAST a half-dozen ...
    (linux.redhat)
  • Re: File Manipulation in Linux
    ... Joe Cipale wrote: ... Why use grep? ... awk has excellent pattern-matching capabilities: ...
    (linux.redhat)
  • Re: General UNIX puzzle
    ... All of those (sed, awk, grep) involve making a copy of the original file ... The gnu shtool is one of the most useful tools for this for in-place ... A Galileo could no more be elected president of the United States than ...
    (freebsd-questions)
  • Re: ssh and chroot
    ... ++ echo /bin/mkdir ... ++ awk '' ... ++ grep '^/' ...
    (comp.security.ssh)