Reputation
Top tag
Next privilege 125 Rep.
Vote down
Badges
4
Impact
~171 people reached

  • 0 posts edited
  • 0 helpful flags
  • 24 votes cast
Oct
2
comment Bash - PS1 not Updating With Proper Hostname after Hostname Change in Script
This isn't about programming, so should be on one of the other stackexchange sites, not here. However, you should be able to solve it by simply changing PS1 to some other string and then back again, which will cause bash to re-read the hostname.
Sep
24
awarded  Autobiographer
Jan
22
awarded  Teacher
Jan
21
comment What is an equivalent of rm `find lib/ -name *.swp` without find?
Nice, I didn't know that
Jan
21
comment What is an equivalent of rm `find lib/ -name *.swp` without find?
@user17591, -exec will spawn a rm process for every file, xargs will pass multiple filename to rm at once
Jan
21
comment What is an equivalent of rm `find lib/ -name *.swp` without find?
which is why GNU find has -print0 but it's not portable
Jan
21
comment What is an equivalent of rm `find lib/ -name *.swp` without find?
fixed by setting newline as the delimiter
Jan
21
revised What is an equivalent of rm `find lib/ -name *.swp` without find?
"ls" output will be relative to lib, so "cd" there first
Jan
21
awarded  Editor
Jan
21
revised What is an equivalent of rm `find lib/ -name *.swp` without find?
use newline as delimiter
Jan
21
answered What is an equivalent of rm `find lib/ -name *.swp` without find?
Aug
20
awarded  Supporter