Reputation
Next tag badge:
72/100 score
18/20 answers
Badges
3 41 79
Newest
 Guru
Impact
~977k people reached

4h
revised Move files from specifically named folders / move files up one level
Just to clarify that the *jpg is not being expanded before it's passed to find.
4h
comment Move files from specifically named folders / move files up one level
@JohnnyBizzle no need for quotes, there's no wildcard and it's not a variable, just a simple string. How did it fail? You need to run it from the parent directory of the photos dirs. It will work as long as all the target folders are named exactly photos
5h
reviewed Approve nautilus tag wiki
5h
answered Move files from specifically named folders / move files up one level
8h
revised Is there a way to run a script every time I insert a usb modem?
edited tags
8h
comment strange code appears in terminal
@GramCracker if this solved your question, please accept it by clicking on the check mark on the right. That will mark the question as answered and is the way that thanks are expressed on the Stack Exchange sites.
8h
revised strange code appears in terminal
edited tags
8h
comment How can I transfer a binary file using minicom and a serial connection?
Is a serial cable the only option? Does the box have a network card? A usb port?
8h
revised How can I transfer a binary file using minicom and a serial connection?
edited tags
8h
revised How to select a directory with the highest version?
This is precisely what the -V option is for, may as well use it.
9h
comment Delete lines in several files in a folder once (avoid infinite loop)
Is that really the exact command you run? That won't get into an infinite loop. You misunderstand how *.dat is dealt with. It is expanded only once, before the command is run so there's no way it can cause an infinite loop.
10h
revised Delete lines in several files in a folder once (avoid infinite loop)
made safe for file names with whitespace
22h
comment Move files from specifically named folders / move files up one level
I don't understand. What do you need that cd photos; mv *jpg ../ or mv /path/to/photos/*jpg /path/to won't do? Do you have multiple directories?
1d
comment How can I use convert to resize images to a specific width keeping the ratio for the height?
I found it in the answer to the duplicate. It is documented (slightly) here. Basically, it sets a threshold and images already smaller than that will not be touched.
1d
revised How can I use convert to resize images to a specific width keeping the ratio for the height?
added 96 characters in body
1d
comment How can I use convert to resize images to a specific width keeping the ratio for the height?
Much better (and disregard my previous comment about reaspect, I should learn to read first). Your cut will still break if the file name contains whitespace though. Same with using cat file. You could get the right width by running identify "$w" | rev | cut -d ' ' -f 7 but the file names will still be an issue if you're using cat.
1d
answered How can I use convert to resize images to a specific width keeping the ratio for the height?
1d
comment How can I use convert to resize images to a specific width keeping the ratio for the height?
The OP needs to read the image names from a file.
1d
awarded  Guru
1d
revised Scripts in /etc/profile.d Being Ignored?
added 107 characters in body