I don't know if it works but I think it should work ^^'
What it is supposed to do:
first writes the found file to testPaths.log and then echo a dot, not the other way around
Sorry for explaining so bad ^^'
btw @scottn: if you take a look at find's man page:
Quote:
-exec command ;
Execute command; true if 0 status is returned. All following arguments to find are taken to be arguments to the command until an argument consisting of `;' is encountered.
maybe thats why it doesn't print the dot directly to stdout? Sorry I could also be terribly wrong about it ^^'
Last edited by al0x; 07-29-2010 at 09:56 AM..
Reason: typos non-stop >.>
I'm trying to make a simple search script but cannot get it right. The script should search for keywords inside files. Then return the file paths in a variable. (Each file path separated with \n).
#!/bin/bash
SEARCHQUERY="searchword1 searchword2 searchword3";
for WORD in $SEARCHQUERY
do
... (6 Replies)
Hello All,
I need a bash shell script to find out a day from the date.For example we give the date(20100227/YYYYMMDD) then we get the day 'Saturday'.
Thanks in advance,
Satheesh (5 Replies)
#!/bin/bash
timevar=`date +%F_”%H_%M”` #-- > Storing Date and Time in a Variable
get_contents=`cat urls.txt` #-- > Getting content of website from file. Note the file should not contain any http:// as its already been taken care of
######### Next Section Does all the processing #########
for i... (0 Replies)
#!/bin/bash
timevar=`date +%d-%m-%Y_%H.%M.%S` #-- > Storing Date and Time in a Variable
get_contents=`cat urls.txt` #-- > Getting content of website from file. Note the file should not contain any http:// as its already been taken care of
echo "Datae-time URL Status code Report" >... (2 Replies)
Hi together,
unfortunately I am not a shell script guru - the following might touch
the depths of awk, substr, split, regexps, where I am still fighting with - but as always the boss needs a fast solution :-(
So: I have the following USER/PASSWORD-installation-config-file, from where I want to... (10 Replies)
Hi, I'm trying to write a script to search through my computer and
find all .jpg files and put them all in a directory. So far I have
this:
for i in `find /home -name '*.jpg' ` ; do mv $i home/allen/Pictures/PicturesFound ; done
When I run it, I get this error (this is only part of it, it... (2 Replies)
As I stated in a previous thread - I'm a newbie to Unix/Linux and programming. I'm trying to learn the basics on my own using a couple books and the exercises provided inside.
I've reached an exercise that has me stumped. I need to write a bash script that will will read in a file and print the... (11 Replies)
hi all,
i have devised a script that starts in /restored/ and in there, there are a lot of sub folders called peoples names and in the sub folders are files/folders and it deletes the data in the sub folders BUT not the sub folder itself and it should then touch a file in all the sub folders... (3 Replies)
Hello -
I have a requirement to get the Memory(Xmx) and the activity name using it.
Sample input info :
1502 02:57 /bin/sh /opt/rather/bar/deploy/bar_run.sh
1545 02:57 java -Drather.repository=/opt/rather/bar/deploy/JobSyng_Barol_Count/JobSyng_Barol_Count/../lib -Xms1024M... (3 Replies)
Discussion started by: Varja
3 Replies
LEARN ABOUT DEBIAN
sb2-logz
sb2-logz(1) sb2-logz man page sb2-logz(1)NAME
sb2-logz - sb2 log postprocessing tool
SYNOPSIS
sb2-logz [options] < logfile
DESCRIPTION
sb2-logz reads logs created by scratchbox2 and writes summaries (the log files can be really huge, and manually digging out information
from them might be a time-consuming task).
Logs are produced when sb2 is executed with -d (debug) or -L options (e.g. "-L info")
OPTIONS -b no blacklist: do not ignore log lines from functions like __xstat() (there is a built-in blacklist, which tries to minimize "noise"
caused by various libraries and scratchbox2 itself)
-B fn1,fn2,..
blacklist funcions fn1,fn2,..: ignore lines generated by the listed library calls.
-d level
debug mode, for debugging the script itself.
-h show help text.
-i print details about 'disabled' pathnames (unmodifed paths, because mapping was momentarily disabled)
-l print long details (affects output of -i,-m,-r,-p etc)
-m print details about mapped pathnames (src->dest)
-N print all 'notice' messages
-p print details about passed pathnames ('passed path' = not mapped)
-r print reversed mappings (dest->src)
-s print process statistics
-v verbose mode, prints dots while reading input etc.
-P file.dot
write process diagram to file.dot (postprocess it with 'dot', e.g. 'dot -Tpdf file.dot >file.pdf'
-E file.dot
write execution diagram to file.dot (postprocess it with 'dot', e.g. 'dot -Tpdf file.dot >file.pdf'
-A acct-file
Read process accounting information from acct-file (enhances output of -P and -E)'
BUGS
Option -A requires an accounting log, which has to be activated separately. Generation of accounting information typically requires super-
user privileges (or CAP_SYS_PACCT capability on Linux). This is an system-level restriction, and not fault of scratchbox2. However,
sb2-logz has some limitations: Correlating information from the accounting log is based on process ids, and the heuristics may fail if
there were really many processes; The -P, -E and -A options may be less useful for longer runs. Best results are achieved if process
accounting is switched on just before the scratchbox2 session is created, and switched off afterwards - and there is nothing else running
on the host at the same time.
SEE ALSO sb2(1), sb2-config(1), sb2-init(1), acct(2), dot(1) ( dot belongs to the graphviz package)
AUTHOR
Lauri Aarnio
2.2 17 December 2010 sb2-logz(1)