# Jonathan Leffler

less info
reputation
1530
bio website None location United States age 53 member for 5 years, 2 months seen Sep 25 at 16:29 profile views 221
Long-time Informix user and developer, experienced in C and Unix (many variants). Email: jonathan.leffler@gmail.com

# 332 Actions

 Mar16 comment number of tracks Mar16 comment rotational latency Mar16 comment How do I calculate the bytes per track based on the transfer rate? Mar14 comment Avoid unwanted path in Zip file @~quack: +1 especially for the sub-shell technique in the comment. Mar12 answered grep beginning of file? Mar12 comment grep beginning of file? You need to quote the file names if they could contain spaces. And you'd probably want to lose the output from 'grep' to /dev/null. You could also use: head -1 "$i" | grep '^&2; exit 1; } Mar3 comment Unix commandline to repeat command with pipes Why not 'eval "$@"' in the script? Mar3 answered Are USB cables device specific? Feb26 comment Documenting Unix commands on the command line @dmckee: When you write 'sh -x', the shell does not do a path-based search for the script - you have to specify the path completely. Feb26 comment Documenting Unix commands on the command line I never had any problems with 'sh -x' on MacOS X 10.5 (or 10.4, ..., or currently on 10.6.2). Which shell are you using? 'sh -x' is common across the majority of shells - I must admit, I was not aware of any that did not support it. Feb25 answered Documenting Unix commands on the command line Feb22 answered Delete matching files in all subdirectories Feb8 answered how to make softlink to bunch of files in one shell comand Feb7 answered Does the order of command options in linux matter? Feb7 comment Why does \rm work but rm doesn't? If it asks you whether to examine the files in '/', do you say 'yes' or 'no'? And does the machine continue to work afterwards? Be very careful about deleting everything under root when running as root; the machine keeps going for a surprisingly long time, but there comes a point at which you have to reboot - off a CD or something similar. Feb6 answered root directory - www or public_html Jan17 comment Multiple Users with owner rights? Note that there's still only one user with owner rights; that's fixed. But that user can give the group members appropriate access rights. Consider using the SGID bit on the directories to ensure that files created in them belong to the same group (the administrators group). Jan16 comment How can I keep a process alive after closing the putty session? Yup - disown looks to be the way to go for an already running job. It's doable because the shell that started the job can manipulate the properties needed.