09-19-2006
My problem is *.exp files are stored in sub-directories .
I have path
PATH="/users/test/daily/"
inside daily there are sub directories which contain *.exp files and i want to grep from every files #maint value and #product value and store in the file
with test.exp name ..
Please can u tell me soultion . thanks in advance
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello
Pls help me i need script for counting number of fails from file .
The file contains number of failuer records . (2 Replies)
Discussion started by: getdpg
2 Replies
2. Shell Programming and Scripting
Hi, i have number of files in a directory to be processed. the problem is some of the files does not have a header and the process is giving an error of no header found.
example of good file :
file1
HDR|20080803233401
record 1
record 2
TRA|2
example of a bad file in the same dir
... (6 Replies)
Discussion started by: sitaldip
6 Replies
3. Programming
hi all,
In an mp3 file , data is arranged in sequence of header and data ,how to retrieve data between two headers. Is the data between two headers fixed? because as per theory it says 1152 samples will be there , but dont knw how many bits one sample correspond to?
it would help if any c... (2 Replies)
Discussion started by: shashi
2 Replies
4. Shell Programming and Scripting
Hi,
I have a file with multiple tab delimited columns and I would like to have the average of each column:
Iteration Tree No Lh HMean
1000 1 -78.834717 -78.834717
1100 1 -77.991031 -78.624046
1200 1 -79.416055 -78.761861
1300 1 -79.280494 -78.968099
1400 1 -82.846275 -80.808696 ... (4 Replies)
Discussion started by: mikey11415
4 Replies
5. UNIX for Dummies Questions & Answers
Friends,
I need help with the following in UNIX.
Merge all csv files in one folder considering only 1 header row and ignoring header of all other files.
FYI - All files are in same format and contains same headers.
Thank you (4 Replies)
Discussion started by: Shiny_Roy
4 Replies
6. Shell Programming and Scripting
Hi, Great minds, I have some files, in fact header files, of CTD profiler, I tried a lot C programming, could not get output as I was expected, because my programming skills are very poor, finally, joined unix forum with the hope that, I may get what I want, from you people,
Here I have attached... (17 Replies)
Discussion started by: nex_asp
17 Replies
7. UNIX for Dummies Questions & Answers
How would I do the following :
Records other than ”ATOM”,”CONNECT”, ”HETATM”, ”TER” and ”END” are considered header records which describe the metadata about the molecule. Use grep to generate the header.
I have this chemistry database. On the attachment. But I am not sure how to use... (4 Replies)
Discussion started by: homeylova223
4 Replies
8. Shell Programming and Scripting
Hi Everyone,
Im currently using the below code to pull data from a large CSV file and put it into smaller files with just the data associated with the number that I "grep".
grep 'M053' test.csv > test053.csv
Is there a way that I can use grep to run through my file like the example below... (6 Replies)
Discussion started by: TheStruggle
6 Replies
9. Shell Programming and Scripting
HI Guys,
File A.txt
UID,HD1,HD2,HD3,HD4
1,2,33,44,55
2,10,14,15,16
File B.txt
UID
HD1
HD4
A.txt B.txt >>>Output.txt
UID,HD1,HD4
1,2,55
2,10,16 (11 Replies)
Discussion started by: pareshkp
11 Replies
10. UNIX for Beginners Questions & Answers
Hi Team,
Could you please help me with the below scenario.
I have a file which is in the below format.
Zipcode,001,001f,002,002f,003,003f,004,004f,005,005f,006,006f,007,007f
0050, ,0, ,0, ,0, ,1,*,7, ,7, ,7
0060, ,0, ,0, ,7, ,0,*,7, ,0, ,0
Would need the output as below.
First field... (1 Reply)
Discussion started by: saj
1 Replies
LEARN ABOUT NETBSD
daily.conf
DAILY(5) BSD File Formats Manual DAILY(5)
NAME
daily, daily.conf -- daily maintenance
DESCRIPTION
The /etc/daily script is run, by default, every night on a NetBSD system. The /etc/daily.conf file specifies which of the standard daily
services are performed.
The variables described below can be set to ``YES'' or ``NO'' in the /etc/daily.conf file. Most default to ``YES'', but not all. Check the
/etc/defaults/daily.conf file if you are in doubt. (Note that you should never edit /etc/defaults/daily.conf directly, as it is often
replaced during system upgrades.)
find_core This runs find(1) over the entire local filesystem, looking for core files.
run_msgs This runs msgs(1) with the -c argument.
expire_news This runs the /etc/expire.news script.
purge_accounting This ages accounting files in /var/account.
run_calendar This runs calendar(1) with the -a argument.
check_disks This uses the df(1) and dump(8) to give disk status, and also reports failed raid(4) components.
show_remote_fs In check_disks, show remote file systems, which are not reported on by default.
check_mailq This runs mailq(1).
check_network This runs netstat(1) with the -i argument, and also checks the rwhod(8) database, and runs ruptime(1) if there are
hosts in /var/rwho.
full_netstat By default, check_network outputs a summarized version of the netstat(1) report. If a full version of the output
run with the -inv options is desired, set this variable.
run_fsck This runs fsck(8) with the -n option.
run_rdist This runs rdist(1) with /etc/Distfile.
run_security This runs the /etc/security script looking for possible security problems with the system.
run_skeyaudit Runs the skeyaudit(1) program to check the S/Key database and informs users of S/Keys that are about to expire.
run_makemandb If the /etc/man.conf file exists, runs the makemandb(8) utility to update the man.db database for use by
apropos(1).
fetch_pkg_vulnerabilities Refreshes the local database of package vulnerabilities. See the settings in security.conf(5) for details on the
actual package checks.
The variables described below can be set to modify the tests:
find_core_ignore_fstypes Lists filesystem types to ignore during the find_core phase. Prefixing the type with a '!' inverts the match.
For example, 'procfs !local' will ignore 'procfs' type filesystems and filesystems that are not 'local'.
find_core_ignore_paths Lists paths to ignore during the find_core phase. For example, '/export' will not descend into any directories
under the '/export' hierarchy. This, on a file server, allows to skip user data while still scanning system files.
run_fsck_flags Extra options to be passed to fsck(8) if run_fsck is enabled.
send_empty_security If set, the report generated by the run_security phase will always be sent, even if it is empty.
pkgdb_dir DEPRECATED. Please set PKGDB_DIR in pkg_install.conf(5) instead.
If defined, points to the location of the packages database. Defaults to /var/db/pkg.
FILES
/etc/daily daily maintenance script
/etc/daily.conf daily maintenance configuration
/etc/defaults/daily.conf default settings, overridden by /etc/daily.conf
/etc/daily.local local site additions to /etc/daily
SEE ALSO
monthly(5), security.conf(5), weekly(5)
HISTORY
The /etc/daily.conf file appeared in NetBSD 1.3.
BSD
July 30, 2012 BSD