Default answer
I have this alias:
alias rm='rm -i' and I would like for it to accept y upon just hitting enter. Thanks. |
You want it to default to 'y'? You'll have to change the code and recompile it then.
|
Thanks. I have seen programs ask question during installs and I was under the false impression that there was some way of doing this.
|
Well,.. if you dont want to press enter everytime, but want to auto-yes it you can always pipe an echo to it:
Code:
echo y|rm -i whatever Code:
yes | rm -i whatever |
You could put a small script into your bin directory that does what you want. Then point your alias to the script.
The script could look similar to this: Code:
#!/bin/bash |
All times are GMT -5. The time now is 01:18 PM. |