02-22-2015
If you would answer the questions I asked in my last post, we might be able to help you. If you choose to ignore my questions, I might be able to come up with a reliable way to do what you want, but there isn't much reason for me to waste time playing guessing games if you refuse to give us answers to the simple questions I asked.
Please help us help you! Answer the questions I asked before:
Quote:
Are source files that have the same name as an existing file in the destination directory disappearing from their source directory?
Are you seeing any output from the mv commands?
What OS and shell are you using?
What is the exit code is from mv on your system if the source file name already exists in the destination directory?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
i have a function which return a variable .
serach ( paramatere) when i excute this function i get the result in the shell,
i want to print this result in a file by calling just the function.
how can i do it..
the code example is like that:
search ( )
{
..
}
the call... (0 Replies)
Discussion started by: kamel.seg
0 Replies
2. Shell Programming and Scripting
i got a data file which contains all the pid,ppid,user,command,pcpu,start_time,status. I wanted to display out the pcpu which is greater than 0.
i uses awk'{if($5 > 0){print}}' filename.txt but is printing out result which not i wanted. Is there any way which i can print out those pcpu which is... (8 Replies)
Discussion started by: thms_sum
8 Replies
3. Shell Programming and Scripting
Hi all
This is my output of the some SQL Query
TABLESPACE_NAME FILE_NAME TOTALSPACE FREESPACE USEDSPACE Free
------------------------- ------------------------------------------------------- ---------- --------- ---------... (2 Replies)
Discussion started by: jhon
2 Replies
4. Shell Programming and Scripting
hi,
please can I ask you for some help? I have data from 3D situation, x y z value
I'd like to use gnuplot to generate maps of the value in the planes z=0 to z=1 for example, my file looks
like
-0,012 0,0060 0,0 0,13972813076023477
-0,012 0,0064319163 4,2894483E-4 ... (1 Reply)
Discussion started by: kocour
1 Replies
5. Shell Programming and Scripting
Hey everyone
I have a file 'agenda' which contains:
Object Day Month Year
Birthday 09 02 2012
i want to extract from a script the line which contains the day the user typed.
for example if he type 09 the line is showed using... (4 Replies)
Discussion started by: Goldstein
4 Replies
6. Shell Programming and Scripting
Hi all,
Say I have a script named script.sh. What it does is to print a line like "abc"
#! /usr/bin/ksh
print "abc"
I would like to pass this value to an external variable,
var1="script.sh"
However when I echo $var1 I got "script.sh" itself instead of the result?
Thanks (3 Replies)
Discussion started by: isaacniu
3 Replies
7. Shell Programming and Scripting
Hi
I would like to search some data with awk and then print the last of the hits.
Find house and print last value
input:red house 4
blue boat 2
green house 6
black car 7
output:6
I now how to search using /house/, print third field print $3, an now I may use some form of $NR to get the... (3 Replies)
Discussion started by: Jotne
3 Replies
8. Shell Programming and Scripting
I have a result like this
root@server # grep -rl maldet /etc/cron*
/etc/cron.d/maldet_daily
/etc/cron.d/malcron
/etc/cron.d/malcrondaily
/etc/cron.d/malcronweekly
What I need is, I need an if/else condition such that, if there is any output other than /etc/cron.d/maldet_daily in the... (8 Replies)
Discussion started by: anil510
8 Replies
9. Shell Programming and Scripting
Hello Unix gurus,
I have a file with this format (example values):
label1 1 0
label2 1 0
label3 0.4 0.6
label4 0.5 0.5
label5 0.1 0.9
label6 0.9 0.1
in which:
column 1 is a row label
column 2 and 3 are values
I would like to do a simple operation on this table and get the... (8 Replies)
Discussion started by: ksennin
8 Replies
10. Shell Programming and Scripting
i am executing below code to achive my result, but for second row the value is not coming
it should come URL like other two . url start with http:// and end with .xhtml
cat FILE | grep 'Test failed' | awk -F',' '{print $3,$8,$12}'
INPUT
1517679173303,84,SKILLED LANGUAGE - ENTER... (11 Replies)
Discussion started by: mirwasim
11 Replies
LEARN ABOUT CENTOS
snmpconf
SNMPCONF(1) Net-SNMP SNMPCONF(1)
NAME
snmpconf - creates and modifies SNMP configuration files
SYNOPSIS
snmpconf [OPTIONS] [fileToCreate]
Start with:
snmpconf -g basic_setup
Or even just:
snmpconf
DESCRIPTION
snmpconf is a simple Perl script that walks you through setting up a configuration file step by step. It should be fairly straight forward
to use. Merely run it and answer its questions.
In its default mode of operation, it prompts the user with menus showing sections of the various configuration files it knows about. When
the user selects a section, a sub-menu is shown listing of the descriptions of the tokens that can be created in that section. When a
description is selected, the user is prompted with questions that construct the configuration line in question.
Finally, when the user quits the program any configuration files that have been edited by the user are saved to the local directory, fully
commented.
A particularly useful option is the -g switch, which walks a user through a specific set of configuration questions. Run:
snmpconf -g basic_setup
for an example.
OPTIONS
-f Force overwriting existing files in the current directory without prompting the user if this is a desired thing to do.
-i When finished, install the files into the location where the global system commands expect to find them.
-p When finished, install the files into the users home directory's .snmp subdirectory (where the applications will also search for
configuration files).
-I DIRECTORY
When finished, install the files into the directory DIRECTORY.
-a Don't ask any questions. Simply read in the various known configuration files and write them back out again. This has the effect
of "auto-commenting" the configuration files for you. See the NEAT TRICKS section below.
-rall|none
Read in either all or none of the found configuration files. Normally snmpconf prompts you for which files you wish to read in.
Reading in these configuration files will merge these files with the results of the questions that it asks of you.
-R FILE,...
Read in a specific list of configuration files.
-g GROUPNAME
Groups of configuration entries can be created that can be used to walk a user through a series of questions to create an initial
configuration file. There are no menus to navigate, just a list of questions. Run:
snmpconf -g basic_setup
for a good example.
-G List all the known groups.
-c CONFIGDIR
snmpconf uses a directory of configuration information to learn about the files and questions that it should be asking. This
option tells snmpconf to use a different location for configuring itself.
-q Run slightly more quietly. Since this is an interactive program, I don't recommend this option since it only removes information
from the output that is designed to help you.
-d Turn on lots of debugging output.
-D Add even more debugging output in the form of Perl variable dumps.
NEAT TRICKS
snmpconf -g basic_setup
Have I mentioned this command enough yet? It's designed to walk someone through an initial setup for the snmpd(8) daemon. Really,
you should try it.
snmpconf -R /usr/local/snmp/snmpd.conf -a -f snmpd.conf
Automatically reads in an snmpd.conf file (for example) and adds comments to them describing what each token does. Try it. It's
cool.
NOTES
snmpconf is actually a very generic utility that could be easily configured to help construct just about any kind of configuration file.
Its default configuration set of files are SNMP based.
SEE ALSO
snmpd(8), snmp_config(5), snmp.conf(5), snmpd.conf(5)
V5.7.2 25 Feb 2003 SNMPCONF(1)