<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Quick grep format question in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/quick-grep-format-question/m-p/2613572#M79485</link>
    <description>Hi,&lt;BR /&gt;here a solution without perl:&lt;BR /&gt;&lt;BR /&gt;# cat bastel.sh&lt;BR /&gt;action()&lt;BR /&gt;{&lt;BR /&gt;  while [ $# -gt 0 ]&lt;BR /&gt;  do&lt;BR /&gt;    echo $1 | grep -e '[A-Z]' &lt;BR /&gt;    shift&lt;BR /&gt;  done&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;while read LINE&lt;BR /&gt;do&lt;BR /&gt;  action $LINE&lt;BR /&gt;done&lt;BR /&gt;# &lt;BR /&gt;&lt;BR /&gt;Volker</description>
    <pubDate>Wed, 14 Nov 2001 15:32:09 GMT</pubDate>
    <dc:creator>Volker Borowski</dc:creator>
    <dc:date>2001-11-14T15:32:09Z</dc:date>
    <item>
      <title>Quick grep format question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/quick-grep-format-question/m-p/2613570#M79483</link>
      <description>All - I need some help.&lt;BR /&gt;&lt;BR /&gt;I want to use grep to copy all the words in a file which have uppercase letters into another file. &lt;BR /&gt;&lt;BR /&gt;I just want the uppercase words themselves, not the entire line.&lt;BR /&gt;&lt;BR /&gt;Can someone give me the command?&lt;BR /&gt;&lt;BR /&gt;I'd appreciate it.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 14 Nov 2001 12:54:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/quick-grep-format-question/m-p/2613570#M79483</guid>
      <dc:creator>Pamela J Goodwin</dc:creator>
      <dc:date>2001-11-14T12:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Quick grep format question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/quick-grep-format-question/m-p/2613571#M79484</link>
      <description>You can't do this with grep.  If you have perl, try creating a script, say script.pl, containing:&lt;BR /&gt;&lt;BR /&gt;while(&amp;lt;&amp;gt;) {&lt;BR /&gt;  chomp;&lt;BR /&gt;  foreach $word (split) {&lt;BR /&gt;    if ($word=~/^[A-Z]+/) { print $word,"\n"; }&lt;BR /&gt;  }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;then run it:&lt;BR /&gt;&lt;BR /&gt;perl script.pl yourfile &amp;gt; resultfile&lt;BR /&gt;&lt;BR /&gt;resultfile will contain all words from yourfile starting with an uppercase letter, one word per line.  If you want only all-uppercase words, add $ after + and if you want uppercase anywhere in the word, remove ^.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Marcin&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Nov 2001 13:39:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/quick-grep-format-question/m-p/2613571#M79484</guid>
      <dc:creator>Marcin Golembski_1</dc:creator>
      <dc:date>2001-11-14T13:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Quick grep format question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/quick-grep-format-question/m-p/2613572#M79485</link>
      <description>Hi,&lt;BR /&gt;here a solution without perl:&lt;BR /&gt;&lt;BR /&gt;# cat bastel.sh&lt;BR /&gt;action()&lt;BR /&gt;{&lt;BR /&gt;  while [ $# -gt 0 ]&lt;BR /&gt;  do&lt;BR /&gt;    echo $1 | grep -e '[A-Z]' &lt;BR /&gt;    shift&lt;BR /&gt;  done&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;while read LINE&lt;BR /&gt;do&lt;BR /&gt;  action $LINE&lt;BR /&gt;done&lt;BR /&gt;# &lt;BR /&gt;&lt;BR /&gt;Volker</description>
      <pubDate>Wed, 14 Nov 2001 15:32:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/quick-grep-format-question/m-p/2613572#M79485</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2001-11-14T15:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Quick grep format question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/quick-grep-format-question/m-p/2613573#M79486</link>
      <description>echo inputfile | awk 'BEGIN { RS="[\ \t]"} { print $1 }'  | grep [A-Z] &amp;gt; outputfile</description>
      <pubDate>Thu, 22 Nov 2001 03:56:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/quick-grep-format-question/m-p/2613573#M79486</guid>
      <dc:creator>eugene_6</dc:creator>
      <dc:date>2001-11-22T03:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Quick grep format question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/quick-grep-format-question/m-p/2613574#M79487</link>
      <description>short correction&lt;BR /&gt;---------------------------&lt;BR /&gt;&lt;BR /&gt;echo inputfile | awk 'BEGIN { RS="[\ \t]"} { print $1 }' | grep ^[A-Z] &amp;gt; outputfile</description>
      <pubDate>Thu, 22 Nov 2001 11:18:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/quick-grep-format-question/m-p/2613574#M79487</guid>
      <dc:creator>eugene_6</dc:creator>
      <dc:date>2001-11-22T11:18:55Z</dc:date>
    </item>
  </channel>
</rss>

