Einstein47
Programmer
Hey all,
I am wanting to grep the output of the du command to display the values just under the current directory. I can identify a pattern with the output (all the direct children have only 1 forward slash '/child_dir', and all the sub children (grandchildren?) have two '/child_dir/grandkid'.
I am looking for the RE to use in this command:
du -k | grep -v "/<RE GOES HERE>/"
It should be obvious, but I can't get it. Any suggestions?!? Einstein47
(Love is like PI - natural, irrational, endless, and very important.)
I am wanting to grep the output of the du command to display the values just under the current directory. I can identify a pattern with the output (all the direct children have only 1 forward slash '/child_dir', and all the sub children (grandchildren?) have two '/child_dir/grandkid'.
I am looking for the RE to use in this command:
du -k | grep -v "/<RE GOES HERE>/"
It should be obvious, but I can't get it. Any suggestions?!? Einstein47
(Love is like PI - natural, irrational, endless, and very important.)