09-19-2011
One more question i promise
I have this
<A="B/C/D"/><E="F" G="H"><![I]]></
and i need to get rid of the last bit <![I]]></ and also move the / from the end of the first <> to the end of the second.
<A="B/C/D"><E="F" G="H"/>
Any help would be much apprenciated
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear community,
I'm quite a newbie with scripting, I have this problem:
I have a file with many lines and I want to copy the lines from 1 to N to file.1, from N+1 to 2N to file.2, and so on up to the end of the file
I have tried with something like this (N=43 in this example):
awk '{for... (2 Replies)
Discussion started by: paolalup
2 Replies
2. Shell Programming and Scripting
Hello all
i know it is pretty hard one but you will manage it all
after noticing and calculating i find a rhythm for the file i want to edit
to copy the last 12 characters in line but the problem is to add after first 25 characters in same line
in other way too copy the last 12 characters... (10 Replies)
Discussion started by: princesasa
10 Replies
3. Shell Programming and Scripting
I have a file with varying record length in it. I need to reformat this file so that each line will have a length of 100 characters (99 characters + the line feed).
AU * A01 EXPENSE 6990370000 CWF SUBC TRAVEL & MISC
MY * A02 RESALE 6990788000 Y... (3 Replies)
Discussion started by: udelalv
3 Replies
4. Programming
I have datafile like
~dta.yunm
shhshsgggssssjsksjs
sggsjshsjsjssss
shshshhshshshs
i wish to take only first line and all other lines in concatenated form in second line what should I do???
output like
~dta.yunm
shhshsgggssssjsksjssggsjshsjsjssssshshshhshshshs
please tell me how... (7 Replies)
Discussion started by: sujit_singh
7 Replies
5. Shell Programming and Scripting
After I create printer queues in AIX, I have to append a filter file location within that printers custom file. within lets say test_queue.txt I need to find the row that starts with :699 and then I need to append on the end the string /usr/local/bin/k_portrait.sh.
Now I've gotten the sed... (2 Replies)
Discussion started by: peachclift
2 Replies
6. UNIX for Dummies Questions & Answers
How can I specify special meaning characters like ^ or $ inside a regex range. e.g
Suppose I want to search for a string that either starts with '|' character or begins with start-of-line character.
I tried the following but it does not work:
sed 's/\(\)/<do something here>/g' file1
... (3 Replies)
Discussion started by: jawsnnn
3 Replies
7. UNIX for Dummies Questions & Answers
How would you do vim copy line and paste at the beginning, middle, and end of another line. I know yy copies the whole line and p pastes the whole line, but on its own separate line. Sometimes I would like to copy a line to the beginning, middle, or end of another line. I would think this would be... (3 Replies)
Discussion started by: cokedude
3 Replies
8. Shell Programming and Scripting
I have files being generated in format A20140326.00........ to A20140326.24.............
I need to copy these hourly basis from one location to another.
Eg. If i copy from 14 to 19 the hour, I use wildcard as A201403226.1*.
Requirement is : I need to copy from 06 hour and wil run the script... (1 Reply)
Discussion started by: Saidul
1 Replies
9. Shell Programming and Scripting
Hello,
I'm works on Ubuntu server
My goal : I would like to read file line per line, but i want to started at the end of file.
Currently, I use instructions :
while read line;
do
COMMAND
done < /var/log/apache2/access.log
But, the first line, i don't want this. The file is long... (5 Replies)
Discussion started by: Fuziion
5 Replies
10. Shell Programming and Scripting
My file (the output of an experiment) starts off looking like this,
_____________________________________________________________
Subjects incorporated to date: 001
Data file started on machine PKSHS260-05CP
**********************************************************************
Subject 1,... (9 Replies)
Discussion started by: samonl
9 Replies
LEARN ABOUT DEBIAN
cf-report
cf-report(8) System Manager's Manual cf-report(8)
NAME
cf-report - cfengine's reporting agent
SYNOPSIS
:
cf-report [options]
DESCRIPTION
:
The reporting agent is a merger between the older cfengine programs cfshow and cfenvgraph. It outputs data stored in cfengine's embedded
databases in human readable form. cfengine is a self-healing configuration 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
--class-regex, -c
Specify a class regular expression to search for
--csv, -C
Enable CSV output mode in hub queries
--debug, -d
Set debugging level 0,1,2,3
--verbose, -v
Output verbose information about the behaviour of the agent
--inform, -I
Output information about actions performed by the agent
--version, -V
Output the version of the software
--no-lock, -K
Ignore ifelapsed locks
--file, -f
Specify an alternative input file than the default
--hostkey, -k
Specify a hostkey to lookup
--html, -H
Print output in HTML
--xml, -X
Print output in XML
--version, -V
Print version string for software
--purge, -P
Purge data about peers not seen beyond the threshold horizon for assumed-dead
--erasehistory, -E
Erase historical data from the cf-monitord monitoring database
--nova-export, -x
Export Nova reports to file - delta or full report
--nova-import, -i
Import Nova reports from file - specify the path (only on Nova policy hub)
--outputdir, -o
Set output directory for printing graph data
--promise-handle, -p
Specify a promise-handle to look up
--query-hub, -q
Query hub database interactively with optional regex search string
--titles, -t
Add title data to generated graph files
--timestamps, -T
Add a time stamp to directory name for graph file data
--resolution, -R
Print graph data in high resolution
--show, -1
Show data matching named criteria (software,variables,classes)
--syntax, -S
Print a syntax summary for this cfengine version
--syntax-export, -s
Export a syntax tree in Javascript format
--no-error-bars, -e
Do not add error bars to the printed graphs
--no-scaling, -n
Do not automatically scale the axes
--verbose, -v
Generate verbose output
--remove-hosts, -r
Remove comma separated list of key hash entries from the hosts-seen database
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-report(8)