Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
13
Impact
~3k people reached

  • 0 posts edited
  • 0 helpful flags
  • 113 votes cast
Dec
11
comment How to read user input when using script in pipe
@jmc - can you post your selector script here? I'd like something similar!
Nov
9
awarded  Popular Question
Aug
26
comment How to add a folder to a remote hosts PATH using a shell script?
I ended up adding a grep around it to ensure it wasnt in the file already, and putting that in a script called path_add_bin_to_path, which is like the following: if ! grep -q PATH:~/bin ~/.bashrc; then echo "PATH=\$PATH:~/bin" >> ~/.bashrc fi I then called that script from my machine using ssh user@host ~/bin/path_add_bin_to_path, which I did in a script right after my syning operation, which is basically rsync -avrz --progress ~/bin/ -e ssh user@host:~/bin
Aug
26
accepted How to add a folder to a remote hosts PATH using a shell script?
Aug
26
awarded  Commentator
Aug
26
comment How to add a folder to a remote hosts PATH using a shell script?
This idea basically worked... thanks!
Aug
26
comment How to add a folder to a remote hosts PATH using a shell script?
I can do that, but I have to connect to lots of different machines all the time, and would like to automate the entire process, including the PATH addition.
Aug
26
revised How to add a folder to a remote hosts PATH using a shell script?
added .bashrc clarification
Aug
26
asked How to add a folder to a remote hosts PATH using a shell script?
Jul
10
awarded  Nice Question
Jun
26
comment Tmux - Get pane # of each pane in a window from a script?
sweet! that totally did it... much appreciated!
Jun
26
accepted Tmux - Get pane # of each pane in a window from a script?
Jun
24
revised Tmux - Get pane # of each pane in a window from a script?
added 96 characters in body
Jun
24
revised Tmux - Get pane # of each pane in a window from a script?
added 1 character in body
Jun
24
comment Tmux - Get pane # of each pane in a window from a script?
thanks for the feedback - but this doesn't tell me which pane is which - just that there are panes 0-3 in a Window, which I could already figure out. I want to be able to write a bash script called get_pane_number that actually returns the right # without the pane being active.
Jun
23
asked Tmux - Get pane # of each pane in a window from a script?
May
15
answered Sorting files according to size recursively
Feb
24
awarded  Curious
Feb
23
accepted Tmux - Get number of panes in the current window in bash variable?
Feb
23
asked Tmux - Get number of panes in the current window in bash variable?