title: Could this be done another way
body: <p>Hello I am trying to learn grep regex (not sure what you would call it). I figured this would be a good way to start.</p>
  <p>Below is the data. I want to extract the file names and Inode numbers.</p>
  <pre><code>  File: vimt
    Size: 24              Blocks: 8          IO Block: 4096   regular file
  Device: 801h/2049d      Inode: 3166374     Links: 2
  Access: (0644/-rw-r--r--)  Uid: ( 1000/    test)   Gid: ( 1000/    test)
  Access: 2022-02-20 00:29:43.732363386 -0500
  Modify: 2022-02-20 00:29:40.516363443 -0500
  Change: 2022-02-20 00:29:40.516363443 -0500
   Birth: 2022-02-20 00:28:41.196364492 -0500
    File: vimhard
    Size: 24              Blocks: 8          IO Block: 4096   regular file
  Device: 801h/2049d      Inode: 3166374     Links: 2
  Access: (0644/-rw-r--r--)  Uid: ( 1000/    test)   Gid: ( 1000/    test)
  Access: 2022-02-20 00:29:43.732363386 -0500
  Modify: 2022-02-20 00:29:40.516363443 -0500
  Change: 2022-02-20 00:29:40.516363443 -0500
   Birth: 2022-02-20 00:28:41.196364492 -0500
    File: vimhard1
    Size: 24              Blocks: 8          IO Block: 4096   regular file
  Device: 801h/2049d      Inode: 3166372     Links: 1
  Access: (0644/-rw-r--r--)  Uid: ( 1000/    test)   Gid: ( 1000/    test)
  Access: 2022-02-20 00:34:39.312358161 -0500
  Modify: 2022-02-20 00:34:39.312358161 -0500
  Change: 2022-02-20 00:34:39.312358161 -0500
   Birth: 2022-02-20 00:34:39.312358161 -0500
  </code></pre>
  <p>This is what i was able to come up with</p>
  <pre><code>stat vimt vimhard vimhard1 | grep -o  &quot;File.*\|Inode.*[[:digit:]]\{7\}&quot;
  </code></pre>
  <p>It did give me what i was looking for</p>
  <pre><code>File: vimt
  Inode: 3166374
  File: vimhard
  Inode: 3166374
  File: vimhard1
  Inode: 3166372
  </code></pre>
  <p>I am just wondering if this is a fluke because I am still surprised I was able to get the data I wanted or is there a better way to pull it out that is more reliable?. I just don't trust what i came up with.</p>
  <p>I did have a really fun time doing this even though it seems very simple.</p>