I need to concatenate files that are inside a directory and subdirectories. Those files end with .c
Can anyone help me
I am using comand 9find) and (cat) but they don't work together.:confused: (1 Reply)
Hi all,
I'd very grateful for some help with the following.
I have a variable number of subdirectories each of which contain a uniquely names results file of the form Results*.dat.
I would like to search through all subdirectories and copy out these results file to another directory so that... (3 Replies)
I have a directory with its subdirectories and files. I want to change them all to read only. Say it is ~/test
chmod -R 444 ~/test
chmod: `/home/myname/test': permission denied
I do not understand. Do I have to have executable mode for a diirectory to access.
How can I change ~/test to... (5 Replies)
From the main directory, I have multiple layers of subdirectories and imbedded files (jpg's) that I would like to have a quiklook. Is there a way of listing out the contents of all of the subdirectories and files with a one-line command?
Thx... (3 Replies)
If I execute the command "ls -l /export/home/abcde/dev/proj/code/* | awk -F' ' '{print $9}' | cut -d'/' -f6-8" it will list all the files in /export/home/abcde/dev/proj/code/ directory as well as the files in subdirectories also
proj/code/test.sh
proj/code/test1.c
proj/code/unix... (8 Replies)
Hi! I want to find files located in subdirectories. I have tried
ls -R | grep myfile
but this won't tell me where the file is, only that it is there.
Any one have a better idea?
Thanks,
--Euclid (3 Replies)
#!/bin/bash
#
name=$1
type=$2
number=1
for file in ./**
do
if
then
filenumber=00$number
elif
then
filenumber=0$number
fi
tempname="$name""$filenumber"."$type"
if (4 Replies)
Hi frnds,
My requirement is I have a zip file with name say eg: test_ABC_UH_ccde2a_awdeaea_20150422.zip
within that there are subdirectories on each directory we again have .zip files and in that we have files like mama20150422.gz and so on.
Iam in need of a bash script so that it unzips... (0 Replies)
Hii,
Could someone help me to append string to the starting of all the filenames inside a directory but it should exclude .zip files and subdirectories.
Eg.
file1: test1.log
file2: test2.log
file3 test.zip
After running the script
file1: string_test1.log
file2: string_test2.log
file3:... (4 Replies)
Discussion started by: Ravi Kishore
4 Replies
LEARN ABOUT DEBIAN
mailgraph
MAILGRAPH(8) System Manager's Manual MAILGRAPH(8)NAME
mailgraph - daemon which produces graphs of SMTP traffic
SYNOPSIS
mailgraph [ options ]
DESCRIPTION
mailgraph is a daemon which produces mail statistics RRDtool for Postfix and Sendmail. This stats are stored for generating daily, weekly,
monthly and yearly graphs of sent/received/rejected and bounced/viruses/spam mails.
OPTIONS -h, --help
Display help and exit.
-v, --verbose
Be verbose about what you do.
-V, --version
Output version information and exit.
-c, --cat
Cause the logfile to be only read and not monitored.
-l, --logfile file
Monitor logfile file instead of /var/log/syslog.
-t, --logtype type
Set logfile's type (default: syslog).
-y, --year
Start year of the log file (default: current year).
--host=HOST
Use only entries for HOST (regexp) in syslog.
-d, --daemon
Start in the background
--daemon-pid=FILE
Write PID to FILE instead of /var/run/mailgraph.pid.
--daemon-rrd=DIR
Write RRDs to DIR instead of /var/lib/mailgraph/.
--daemon-log=FILE
Write verbose-log to FILE instead of /var/log/mailgraph.log.
--ignore-localhost
Ignore mail to/from localhost (used for virus scanner).
--ignore-host=HOST
Ignore mail to/from HOST (used for virus scanner).
--no-mail-rrd
Do not update the mail rrd.
--no-virus-rrd
Do not update the virus rrd.
--no-greylist-rrd
Do not update the greylist rrd.
--rrd-name=NAME
Use NAME.rrd, NAME_virus.rrd and NAME_greylist.rrd for the rrd files.
--rbl-is-spam
Count rbl rejects as spam.
--virbl-is-virus
Count virbl rejects as viruses.
SEE ALSO rrdtool(1), RRDs(3pm)AUTHOR
David Schweikert <dws@ee.ethz.ch>
MAILGRAPH(8)