151 reputation
3
bio website home.online.no/~pjacklam
location Asker
age 44
visits member for 3 years
seen Jun 2 at 11:01

System administrator and software tool-smith.


Nov
30
comment shell commands to check & create dir
You could skip the test and simply do rm -rf /var/lib/mysql/tmp; mkdir -p /var/lib/mysql/tmp, as others have suggested, but that doesn’t exactly answer your question, since it removes and re-creates the directory /var/lib/mysql/tmp every time, also when it exists beforehand.
Nov
30
revised creating a sequence of numbers, one per line in a file
Simplified ‘dc’ version.
Nov
30
comment creating a sequence of numbers, one per line in a file
It was unnecessarily complicated, but not on purpose, so I have simplified it now.
Nov
30
awarded  Editor
Nov
30
revised creating a sequence of numbers, one per line in a file
deleted 2 characters in body
Nov
29
answered shell commands to check & create dir
Nov
29
answered creating a sequence of numbers, one per line in a file
Nov
28
answered Delete lines beginning with #
Nov
28
answered Bash - Continuous String Manipulation
Nov
23
awarded  Teacher
Nov
23
answered How to print certain columns by name?
Nov
23
awarded  Autobiographer