shell script with dialog
I have this folowwing code:
Code:
#!/bin/bash Code:
ifconfig > /root/grepin |grep -n $na /root/grepin > /root/grepout |cat /root/grepout thx in advance |
In what way 'isn't giving me anything'? Not displaying the box, or not behaving as expected?
|
it's not behaving as aspected
it does not run this command: Code:
ifconfig > /root/grepin |grep -n $na /root/grepin > /root/grepout |cat /root/grepout |
Try this:
Code:
ifconfig | grep -n $na In your example you are redirecting stdout twice on two commands with the ">" and "|". I would expect your results to be undefined. (Anything could happen!) Don |
All times are GMT -5. The time now is 06:43 AM. |