Im learning Bash Bourne Again Shell and I learned about the read command and I have problems with arrow key inputs. I could benefit from a web resource listing all the commands so I decided to make a script but I want to improve it. So far I got this
Ubuntu Bash Script Advice?
2
Im learning Bash Bourne Again Shell and I learned about the read command and I have problems with arrow key inputs. I could benefit from a web resource listing all the commands so I decided to make a script but I want to improve it.
So far I got this
apropos man > $HOME/Downloads/fcList.txt
cd $HOME/Downloads/
shuf -n 1 fcList.txt
this returns some of the commands randomly like i didnt see shuf in the list I want to grep this data to get the string up to the first space and then man $X that so it will output the man page for the command.
Eventually I think this script should come with linux I call it ranman It will get a random linux command and search the man pages for it.
So far I got this
apropos man > $HOME/Downloads/fcList.txt
cd $HOME/Downloads/
shuf -n 1 fcList.txt
this returns some of the commands randomly like i didnt see shuf in the list I want to grep this data to get the string up to the first space and then man $X that so it will output the man page for the command.
Eventually I think this script should come with linux I call it ranman It will get a random linux command and search the man pages for it.
- AvoAvocado
- [ 1 ] Thanks
Next Topics on Trending Feed
-
2