|
unsightly double slashes in paths Gentlemen, what is the significance of double slashes in paths? I know you can use as many as you want, $ ls -s /usr/lib/xorg/modules////////libxaa.so 372 /usr/lib/xorg/modules////////libxaa.so but one is enough, and two usually mean one did $ a=/usr/; echo $a/doc /usr//doc when a=/usr would have been fine. I... 24 Jun 2008 21:35
Linux: how to reclaim memory Hope it's not OT. I ran a big SQL query last week and during that period, that process ate up most of my memory plus some SWAP(about 1.4GB). the process finished last weekend, but it seems that the memory used has not yet been released. a simpe 'top' command line shows: ============================================... 25 Jun 2008 03:42
Drop '$' with sed All, I have a file with prices, from which I need to drop the '$'. I'm trying to use sed to do this: echo $297.00 | sed 's/\$\(\d\{1,\}\.\d\{1,\}\)/\1/g' Logic: find a $, followed by one or more digits, followed by a . followed by one or more digits and remove the $. However, this example outputs 97.00 and is... 24 Jun 2008 09:13
Hard to get rid of two files I've got a couple of files in lost+found that were left there after an fsck operation: -rwS--s-wT 1 1418 36752 92966795 1972-12-11 16:06 #48581751 --wSr--rw- 1 1418 34988 92965031 1972-12-11 15:37 #48582225 I've tried "rm -f" and chmod but I keep getting an "Operation not permitted" message. How can I rem... 24 Jun 2008 10:15
Find error Hi: I´m looking for help with this error: /remove_arqs: /usr/bin/find: Arg list too long # cat /remove_arqs for area in `cat /areas_to_clean` do for file in `find $area/*.trc -type f -mtime +20` do ls -l $file rm $file done done ... 23 Jun 2008 11:41
bash / posix shells : chaining commands with || and && Maybe a little bit of a theoretic question, because it does not have much practical value, but maybe someone can give a quick answer: Say I have 3 programs, a b and c. I would like to execute a, and iff it fails (exit code not 0), I also would like to execute b and c. I can think of 2 possibilities how to do th... 23 Jun 2008 10:40
Editing Crontab Entries I would like to edit crontab entries on about 50 Systems thorugh script and change the execution time of one particular script . Any ideas on this. ... 23 Jun 2008 09:38
Running a command for a limited time Hello everyone, I am looking for a command line utility that would allow me to specify the maximum amount of time a shell script can run. Basically the idea is that I run a rsync in a nightly cron job and I would like to make sure it does not run for more than 3 hours (else I'd rather have it killed as it would ... 5 Jul 2008 21:42
How to remove specific file extensions recursively insubdirectories? On Sun, 22 Jun 2008 15:57:36 -0700, Nicole wrote: The task at hand is renaming thousands of files within about one hundred directories and subdirectories, and I am sure there must be an easy way to do it from the command line, but right now I can't think of it and it's driving me mad... I need to g... 22 Jun 2008 20:23
How to remove specific file extensions recursively in subdirectories? The task at hand is renaming thousands of files within about one hundred directories and subdirectories, and I am sure there must be an easy way to do it from the command line, but right now I can't think of it and it's driving me mad... I need to get rid of two specific extensions that were added erroneously to... 22 Jun 2008 20:23 |