07-04-2014
Find "*.c" and "Makefile" and then delete them with one line
find "*.c" and "Makefile" and then delete them with one line
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
2. Shell Programming and Scripting
I wrote a script to delete files which are older than "x" days, if the size of the directory is greater than "y"
#!/bin/bash
du -hs $1
while read SIZE ENTRY
do
if ;
then
find $1 -mtime +$2 -exec rm -f {} \;
echo "Files older than $2 days deleted"
else
echo "free Space available"... (4 Replies)
Discussion started by: JamesCarter
4 Replies
3. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
4. Shell Programming and Scripting
I have a bunch of random character lines like ABCEDFG. I want to find all lines with "A" and then change any "E" to "X" in the same line. ALL lines with "A" will have an "X" somewhere in it. I have tried sed awk and vi editor. I get close, not quite there. I know someone has already solved this... (10 Replies)
Discussion started by: nightwatchrenba
10 Replies
5. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
6. Shell Programming and Scripting
Dear Ladies & Gents,
I have a requirement to delete all the log files in /var/log/test directory that are older than 10 days and their first line begin with "MSH" or "<?xml" or "FHS". I've put together the following BASH script, but it's erroring out:
for filename in $(find /var/log/test... (2 Replies)
Discussion started by: Hiroshi
2 Replies
7. Shell Programming and Scripting
These three finds worked as expected:
$ find . -iname "*.PDF"
$ find . -iname "*.PDF" \( ! -name "*_nobackup.*" \)
$ find . -path "*_nobackup*" -prune -iname "*.PDF"
They all returned the match:
./folder/file.pdf
:b:
This find returned no matches:
$ find . -path "*_nobackup*" -prune... (3 Replies)
Discussion started by: wolfv
3 Replies
8. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
9. AIX
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Discussion started by: penchev
3 Replies
LEARN ABOUT CENTOS
module::install::makefile
Module::Install::Makefile(3) User Contributed Perl Documentation Module::Install::Makefile(3)
NAME
Module::Install::MakeMaker - Extension Rules for ExtUtils::MakeMaker
SYNOPSIS
In your Makefile.PL:
use inc::Module::Install;
WriteMakefile();
DESCRIPTION
This module is a wrapper around ExtUtils::MakeMaker. It exports two functions: "prompt" (an alias for "ExtUtils::MakeMaker::prompt") and
"WriteMakefile".
The "WriteMakefile" function will pass on keyword/value pair functions to "ExtUtils::MakeMaker::WriteMakefile". The required parameters
"NAME" and "VERSION" (or "VERSION_FROM") are not necessary if it can find them unambiguously in your code.
CONFIGURATION OPTIONS
This module also adds some Configuration parameters of its own:
NAME
The NAME parameter is required by ExtUtils::MakeMaker. If you have a single module in your distribution, or if the module name indicated by
the current directory exists under lib/, this module will use the guessed package name as the default.
If this module can't find a default for "NAME" it will ask you to specify it manually.
VERSION
ExtUtils::MakeMaker requires either the "VERSION" or "VERSION_FROM" parameter. If this module can guess the package's "NAME", it will
attempt to parse the "VERSION" from it.
If this module can't find a default for "VERSION" it will ask you to specify it manually.
MAKE TARGETS
ExtUtils::MakeMaker provides you with many useful "make" targets. A "make" target is the word you specify after "make", like "test" for
"make test". Some of the more useful targets are:
o all
This is the default target. When you type "make" it is the same as entering "make all". This target builds all of your code and stages
it in the "blib" directory.
o test
Run your distribution's test suite.
o install
Copy the contents of the "blib" directory into the appropriate directories in your Perl installation.
o dist
Create a distribution tarball, ready for uploading to CPAN or sharing with a friend.
o clean distclean purge
Remove the files created by "perl Makefile.PL" and "make".
o help
Same as typing "perldoc ExtUtils::MakeMaker".
This module modifies the behaviour of some of these targets, depending on your requirements, and also adds the following targets to your
Makefile:
o cpurge
Just like purge, except that it also deletes the files originally added by this module itself.
o chelp
Short cut for typing "perldoc Module::Install".
o distsign
Short cut for typing "cpansign -s", for Module::Signature users to sign the distribution before release.
SEE ALSO
Module::Install, CPAN::MakeMaker, CPAN::MakeMaker::Philosophy
AUTHORS
Adam Kennedy <adamk@cpan.org>
Audrey Tang <autrijus@autrijus.org>
Brian Ingerson <INGY@cpan.org>
COPYRIGHT
Some parts copyright 2008 - 2012 Adam Kennedy.
Copyright 2002, 2003, 2004 Audrey Tang and Brian Ingerson.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.16.3 2012-03-01 Module::Install::Makefile(3)