01-21-2012
There are hundreds of replies to your question on this forum, do a search (top right)
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
I am attempting to remove all the ^M characters in a file in VI.
The command I am using is
:1,$s/^V^M//g
but it doesn't work, saying 'substitute pattern match failed'.
Any ideas why?
Jules (2 Replies)
Discussion started by: julesinbath
2 Replies
2. Shell Programming and Scripting
I have a folder with no name on unix.(someone created it)
How do i remove this?
anyone came across this kind of a problem please respond.
thanks
ram (2 Replies)
Discussion started by: ramky79
2 Replies
3. UNIX for Dummies Questions & Answers
Hi there,
I'm pretty new to UNIX and have tried trawling through this forum to find an answer to what I want to try to do, which I'm sure is very simple but I don't know how to do it.
What I have a a folder that contains multiple files that I have copied from Windows and I want to remove the... (5 Replies)
Discussion started by: johnmcclintock
5 Replies
4. UNIX for Advanced & Expert Users
Hello all,
I'm trying to accomplish that if a file gets written to folder /path/to/a/ it gets automatically copied into /path/to/b/ the moment its get written.
I thought of writing a shell script and cron it that every X amount of minutes it copies these files over but this will not help me... (2 Replies)
Discussion started by: Bashar
2 Replies
5. UNIX for Dummies Questions & Answers
I need help removing the last character of every line if it is a certain character. For example I need to get rid of a % character if it is in the last position.
Input:
aaa%
%bbb
ccc
d%dd%
Output should be:
aaa
%bbb
ccc
d%dd
I tried this but it gets rid of all of the % characters.... (5 Replies)
Discussion started by: raptor25
5 Replies
6. Shell Programming and Scripting
Hi,
I have a file that has data something like below:
A
B
C
D
.....
......
.....and so on
I am trying to bring it in one line with comma delimited something like below :
A,B,C,D
I tried the something below in the code section:
cat File.txt | tr '\n' ',' (1 Reply)
Discussion started by: rkumar28
1 Replies
7. Shell Programming and Scripting
Hello,
I do have several files in one folder each file contains measurement data.
for each file I would like to replace the character "," by "." ?
How can I do this and how can I do this for each file at once?
E.G. data_1.dat, data_x.dat (original version)
data_1out.dat, data_x_out.dat... (10 Replies)
Discussion started by: rollinator
10 Replies
8. Shell Programming and Scripting
I need help to write shell script to copy files from one server to another server.
Source Directory UAE(inside i have another folder Misc with files inside UAE folder).I have to copy this to another server UAE folder( Files should be copied to UAE folder and Misc files should be copied in target... (3 Replies)
Discussion started by: naresh2389
3 Replies
9. Shell Programming and Scripting
with in my files i have the data like this, starting with a pipe and ending the line with a pipe.
all i want is to replace the first and last pipe , remove those
trying to use following sed command, but it is only showing on the screen the entire data of the file as if it removed, but when i... (4 Replies)
Discussion started by: cplusplus1
4 Replies
10. Shell Programming and Scripting
Hi Team,
I am new to shell script and there is a requirement where files should be moved from Subfolder to parent folder.
Eg:
parent folder --> /Interface/data/test/IN
Sub folder -->/Interface/data/test/IN/Invoice20180607233338
Subfolder will be always with timestamp... (6 Replies)
Discussion started by: srivarun15
6 Replies
LEARN ABOUT DEBIAN
cf-runagent
cf-runagent(8) System Manager's Manual cf-runagent(8)
NAME
cf-runagent - Run agent
SYNOPSIS
:
cf-runagent [options]
DESCRIPTION
:
The run agent connects to a list of running instances of the cf-serverd service. The agent allows a user to forego the usual scheduling
interval for the agent and activate cf-agent on a remote host. Additionally, a user can send additional classes to be defined on the remote
host. Two kinds of classes may be sent: classes to decide on which hosts the agent will be started, and classes that the user requests the
agent should define on execution. The latter type is regulated by cf-serverd's role based access control. cfengine is a self-healing con-
figuration and change management based system. You can think of cfengine as a very high level language, much higher level than Perl or
shell. Asingle statement is called a promise, and compliance can result in many hundreds of filesbeing created, or the permissions of many
hundreds offiles being set. The idea of cfengine is to create a one or more sets of configuration files which willclassify and describe the
setup of every host in a network.
COMMAND LINE OPTIONS
:
--help, -h
Print the help message
--background, -b
Parallelize connections (50 by default)
--debug, -d
Set debugging level 0,1,2,3
--verbose, -v
Output verbose information about the behaviour of the agent
--dry-run, -n
All talk and no action mode - make no changes, only inform of promises not kept
--version, -V
Output the version of the software
--file, -f
Specify an alternative input file than the default
--define-class, -D
Define a list of comma separated classes to be sent to a remote agent
--select-class, -s
Define a list of comma separated classes to be used to select remote agents by constraint
--inform, -I
Print basic information about changes made to the system, i.e. promises repaired
--remote-options, -o
Pass options to a remote server process
--diagnostic, -x
Activate internal diagnostics (developers only)
--hail, -H
Hail the following comma-separated lists of hosts, overriding default list
--interactive, -i
Enable interactive mode for key trust
--query, -q
Query a server for a knowledge menu
--timeout, -t
Connection timeout, seconds
AUTHOR
Mark Burgess and CFEngine AS
INFORMATION
Bug reports: http://bug.cfengine.com, .PP Community help: http://forum.cfengine.com
Community info: http://www.cfengine.com/pages/community
Support services: http://www.cfengine.com
This software is Copyright (C) 2008-2013 CFEngine AS.
Maintenance Commands cf-runagent(8)