First  |  Prev |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
newbie: using find to touch new files
Hi, all I took this script suggested by Stephane CHAZELAS find . -name "* .txt" -exec sh -c 'file=$1; exec mv "${file}" "${file % .txt}.txt"' {} {} \; this was intended to rename files, but i want create new files with same name but another extension. find . -type f -name PPpldate.jpg -exec sh -c 'file=... 2 Jul 2010 17:57
Parse a line?
Hi folks. I need to get the value of just the 'uid' from a line in /etc/exports. For example, in the line below, I need to get the value '150', from the 'anonuid=150' value, and I need to verify that that is a valid uid by checking it against /etc/passwd: /home/joe pc001(rw,all_squash,anonuid=150,anongid... 2 Jul 2010 17:57
printf and conversion of negative numbers (Hex2Dec)
Hi, I am facing a problem when interpreting negative decimal number in hexadecimal format using 'printf' in bash script. This example command: printf "%X\n" -2147476746 Does produce this result: FFFFFFFF80001AF6. I learned that the 'FFFFFFFF' is an interpretation of the minus sign. Now I would like to do t... 1 Jul 2010 13:20
find command
I put this command in crontab I wanted to delete all the files in the subdirectories its not doing that: /bin/find /archive/backup/fixed -mtime +10 -exec rm -rf {} \; > /dev/ null 2>&1 Fixed has a bunch of sub-directories and within the sub-directories there are lots of files that wanted to delete if they e... 6 Jul 2010 12:16
escaping directory name space
using ditto for a targeted backup which has a directory with a space in directory name (FileMaker Server). Mac OS/server 10.6.4 What is the preferred syntax/escape for handling the space: quoting the offending name or backslashing prior to the space? #!/bin/sh ditto -c -k -rsrc /Library/"FileMaker Server... 1 Jul 2010 09:57
Writing & Editing Jobs
Hi, We are looking for some people that are interested in working from their home on a part or full-time basis. If you want to earn $100, $200 or even up to $500 a day, and you don't mind writing some short opinions up, this is the perfect opportunity for you! We work with hundreds of companies such as 20th C... 1 Jul 2010 03:26
command substitution within contrab question
G'day The following line from crontab 45 13 * * * /usr/bin/cp /export/home/cckell/scratch /export/home/cckell/scratch.`/usr/bin/date '+\%A'` Produces this output ... -rw-r--r-- 1 ccakell7 ndbaadm 17768 Jun 30 13:19 scratch.\Wednesday It adds a \ before the Day. What i want it to produce is ..... 8 Jul 2010 10:15
Testimonial VIDEO for Honorable Prime Minister Vladimir Putin of the Russian Federation
Testimonial VIDEO for Honorable Prime Minister Vladimir Putin of the Russian Federation http://www.youtube.com/watch?v=LCYKZq9JLnc http://www.youtube.com/watch?v=Cnz5N9OubCQ http://www.youtube.com/watch?v=4nP8IdKP9Bc http://www.youtube.com/watch?v=E0_zG0PEh4o http://www.youtube.com/watch?v=JQzBeXa6Jao A brie... 29 Jun 2010 18:30
CONTROLLED DEMOLITION INC explosive-charge placement technician Tom Sullivan 911 TESTIMONIAL Video
On Tue, 29 Jun 2010 09:31:07 -0700 (PDT), nanothermite911fbibustards <nanothermite911fbibustards(a)gmail.com> wrote: They had military type wireless coordinated cutter charges that they accessed You're a goddamned idiot. You think that we did not go to the moon as well, right? ... 29 Jun 2010 14:04
How to create epoch time variable with gawk?
The command <date -u -d "2010/06/28 18:06:11" +%s> creates epoch time for the given date and time. I wish to create epoch times for a file according to the following example: 2009/10/02 18:02:36 2009/12/03 07:45:55 2010/05/16 13:03:56 etc... ....by a command similar to <gawk -v x=$( date -u -d "$1 $2" +%s... 30 Jun 2010 15:21
First  |  Prev |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21