12,768 reputation
32059
bio website nattinger.net
location Cambridge, MA
age 27
visits member for 2 years, 6 months
seen 2 hours ago

I'm an elected moderator on Science Fiction and Fantasy and moderator pro tempore on The Great Outdoors, and I'm also active on several other SE sites.

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

I am an iOS Software Engineer at Fitbit, Inc.


1d
revised Restart MySQL server
added 21 characters in body
Apr
15
comment Move files and change ownership at the sametime
Yes, you specified it, but it's not necessary. Your command works fine without the f - part.
Apr
15
comment Move files and change ownership at the sametime
Pretty sure the -f - is implied on both ends.
Apr
15
comment Does `sl` ever show the current directory?
If you did a mkdir -p "$(dirname "$(sl)")" you could do touch "$(sl)". Of course, you might be testing the limits of your OS/FS. And have fun cleaning that up.
Mar
27
revised Shell Scripting: how to use part of the file path as the file name?
added 44 characters in body
Mar
21
awarded  Notable Question
Mar
14
comment Merging Two Files columns in order
You can tell join to print the fields in a different order to begin with. That won't work for variable numbers of fields, of course, but it saves a process if it's a predictable file.
Mar
13
answered Merging Two Files columns in order
Mar
13
comment awk remove the rows based on another column value
@terdon You need to parse, but it's shorter, and no loop: sort -nrk2 file | awk '!a[$NF]++'
Mar
13
comment awk remove the rows based on another column value
As long as you're sorting, use -r and just print the first occurrence of each name
Mar
12
awarded  Nice Answer
Mar
4
comment Transform a directory into file or a file into directory
the -- marks the end of the flags so rmdir and touch know anything past it is a filename, even if it starts with -.
Feb
26
comment where is `cd` located?
"the builtin will be the preferred option" And the only one that works.
Feb
13
revised What files does authconfig modify on RHEL?
added 32 characters in body
Feb
10
awarded  Nice Answer
Feb
10
awarded  Enlightened
Feb
10
revised Batch renaming of files
added 1 characters in body
Feb
7
revised How can we rename a file with semi-colon as part of the filename?
added 200 characters in body
Feb
7
comment How can we rename a file with semi-colon as part of the filename?
@PythonLarry I don't have cygwin to get the exact messages, but they should be something along the lines of "mv: foo.XLS: not a directory" and "bash: 1: command not found"
Feb
6
comment Cannot SSH to VM
Try attached to bridge