19,832 reputation
23672
bio website
location Athens, Greece
age 34
visits member for 2 years, 7 months
seen 1 hour ago

Elected moderator on Unix & Linux. Feel free to @ping me in chat if there's anything I can help you with.

I've been using Linux since the late '90s and have gone through a variety of distributions. At one time or another, I've been a user of Mandrake, SuSe, openSuSe, Fedora, RedHat, Ubuntu, Mint, Arch and for the past few years Linux Mint Debian Edition (which is basically Debian testing but more green).

My Linux expertise, if I can grace it with such a lofty title, is mostly on manipulating text and regular expressions since that represents a large chunk of my daily work.

profile for terdon on Stack Exchange, a network of free, community-driven Q&A sites


6h
answered How do I find the path to the 32bit version of java on 64bit Linux?
6h
revised How do I find the path to the 32bit version of java on 64bit Linux?
Mint is off topic here but the answer is valid for all Debian derivatives.
1d
comment Remote access to a machine, run script for logged on user
What commands? GUI? Non-GUI? Please edit your question and give some specific examples.
1d
comment Use Terminal after opening process
Note that to background a command, you need to add a single ampersand (&) to the end of it.
1d
comment Cron jobs with R scripts
Could you either post that as an answer or delete your question please?
1d
comment How to delete all lines before and after the specific strings in the file?
Ideally, you include the info from comments in your answer. Comments can be deleted without warning and are easy to miss. However, my comment was wrong. I mean, you are making that assumption but my solution doesn't change that. Try this instead: sed -r 's/.*(STRING1)/\1/;s/(STRING2).*/\1/; /STRING1/,/STRING2/!d' file.
1d
comment How to delete all lines before and after the specific strings in the file?
This assumes that STRING1 is the only thing on the line. Try sed -e '/.*STRING1/,/STRING2.*/!d' instead.
1d
comment Cron jobs with R scripts
Try adding 2> /tmp/cronerror to the end of your cron line. That will print any error messages into the file /tmp/cronerror. If any errors are printed, please edit your question and include them.
1d
revised append .mp3 at end of every file in a folder
Fixed syntax errors and clarified that this also renames directories
1d
revised append .mp3 at end of every file in a folder
edited tags
1d
comment Delete partition /dev/sda2/home
Please edit your question and post the output of sudo parted -l explaining which partition you want to delete. /dev/sda2/home is not a valid partition name. Do you mean /dev/sda2?
1d
comment Convert NTFS TO FAT file system
@vaibhav mount /dev/sda1 /mnt/usb should be enough. However, I just read that you're using a 2.6 kernel. Is that true? If so, that changes everything, NTFS support was not very good back then. Please upgrade your system.
1d
answered Help with a Bash script or some program to sort files and move to different folders
2d
comment Help with a Bash script or some program to sort files and move to different folders
One more improvement you could make is to save the files that didn't match in an array and print that array at the end of the script. That way you avoid the use of temp files (you also avoid the danger of having a file called nomatch in the directory you run this from) and don't need to clean up afterwards.
2d
comment Help with a Bash script or some program to sort files and move to different folders
And wow, you did your homework! You even added nullglob, well done and +1 :)
2d
comment Help with a Bash script or some program to sort files and move to different folders
Yes but next time you run the program it will add to the file. Since you're using >> the file will grow each time you run the script.
2d
answered Moving from Linux mint to Ubuntu
2d
revised Moving from Linux mint to Ubuntu
Grammar
2d
reviewed Approve Help with a Bash script or some program to sort files and move to different folders
2d
comment Does anyone know of an upside down window border or theme for MATE or Gnome?
Please edit your question and clarify which desktop environment(s) you are interested in. Answers will depend on it.