Reputation
Next tag badge:
97/100 score
19/20 answers
Badges
12 122 224
Newest
 Announcer
Impact
~6.6m people reached

Jun
26
awarded  Announcer
Jun
25
awarded  Nice Answer
Jun
4
awarded  Enlightened
Jun
4
awarded  Nice Answer
May
29
awarded  software-installation
May
28
awarded  Good Answer
May
22
awarded  Nice Answer
May
18
awarded  Nice Answer
May
15
awarded  Nice Answer
May
15
reviewed Close OPus Audio codec install on Lubuntu 14.04
May
15
reviewed Close Another OS Like Windows server on MAAS Nodes
May
15
reviewed Edit Cannot get rid of nvidia drivers, restore nouveau driver and get desktop working
May
15
revised Cannot get rid of nvidia drivers, restore nouveau driver and get desktop working
improved formatting
May
15
comment How to write a shell script to assign letter grades to numeric ranges?
@urosjarc I think this answer is reasonably helpful and a useful contribution to the site. However, it does have one substantial problem (which Tim has mentioned): it quits silently on 0, 59, 60, 69, 70, and 79, since it uses the strictly less than operator (<) rather than the less than or equal to operator (<=). I recommend fixing this problem--with that fixed, I believe this should be considered a good answer.
May
15
comment What to do about “the disk drive for /dev/mapper/cryptswap1 is not ready yet or not present”?
@Len You're right--this only works if you can boot the system. You could try booting from recovery mode (try that first), or chrooting from a live CD/DVD/USB and doing it that way (more complicated, but doable). In a recovery mode root shell, or in a chroot you create in a live environment, all your commands run as root so you can leave off sudo in the commands. gedit is unlikely to work in either situation but nano should work fine. If you use a live system you can just run its GParted (outside the chroot); otherwise, use fdisk and mkswap. I suggest posting a new question.
May
15
comment “No such file or directory” when trying to remove a file, but the file exists?
Rather than calling rm by name via a pipe from find to xargs, I recommend simply using find's -delete action. Also sudo isn't needed. Less significantly, I suggest omitting -type f except where it's clearly helpful. Presumably if the entry the OP wants to delete turned out to be a symbolic link, for example, they'd still want to find it and still want to delete it. The -delete action won't recursively clobber a directory; neither will your rm command since you don't have -r. So you aren't going to accidentally whack a whole (non-empty) folder here by not using -type.
May
15
comment “No such file or directory” when trying to remove a file, but the file exists?
@Izkata Good call! I should've thought to check that. It also appears when I expand revision 3 in the edit history (the full filename, including the trailing space, is highlighted in green and thus discernible). What you've said is the most definitive and specifically correct explanation so far--if you posted an answer explaining that it's from a trailing space, and how you know, and what command would remove the file (if the OP still had it), I know I'd upvote it.
May
14
awarded  Nice Answer
May
14
comment cp command not copying all of large file when run from a shell script
What command are you using to call the script? Do you receive any error message or other output from the script? Is the problem reproducible--that is, have you tried each way multiple times and verified the script always copies only ~1 GB while running cp manually as a single command always copies the whole thing? Is the script you've shown us literally what you are running, or does your script have other lines also? What's the output of echo $?, run immediately after executing your script? What is it when run after running the cp command manually? (Please edit with this info--thanks!)
May
14
answered “No such file or directory” when trying to remove a file, but the file exists?