On Fri, Jun 27, 2003 at 09:49:42PM +0100, Adam Bowns wrote: > sensors |grep CPU: |cat > cpu
For starters, you don't need the last pipe. This will do: sensors | grep CPU: > cpu > which gives me a file called cpu with contents: - > CPU: +53.4?C (limit = +120?C, hysteresis = +100?C) > > the problem im having is that i need the file to just contain: - > 53.4 Check out cut. You can cut based on a delimeter (first the + and then the ?). The rest is left as an excercise. -- Ed Wilts, Mounds View, MN, USA mailto:[EMAIL PROTECTED] Member #1, Red Hat Community Ambassador Program -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list