i am trying to append a 5 line SGML file(file1) with a 500,000 line SGML file (file2).
file1 is a template, so i wish to preserve.
i only want to add lines 5 to the end of file2.
i have:
cp file1 temp1
sed -n '5,$p' file2 >> temp1
when i check the tail of temp1, i consistantly find the... (3 Replies)
Source File:
abcdefghijklmnop01qrstuvwxyz
abcdefghijklmnop02qrstuvwxyz
abcdefghijklmnop03qrstuvwxyz
abcdefghijklmnop04qrstuvwxyz
abcdefghijklmnop05qrstuvwxyz
Whatever characters are in 17-18 on each line of the file, it should be concatenated to the same line at the character number... (6 Replies)
Hi,
Here is my piece of code used with sed in shell script:
sed -i '/<falsemodule-option>/ a\<LdapLogin>' myxmlfile
The problem that i am facing with the above is that in 'myxml' file i have mulitple instances of <falsemodule-option>
so when i execute the above sed command, it is appending... (10 Replies)
hello all,
First time post here. I have searched a bit but could not find an exact answer. I have about a week's experience of Sed and Awk, and am having fun, but am a little stuck.
I am reformatting an xml file into json format. I have got this far:
{"clients":
...and so on. What I want... (22 Replies)
Hey all
I am trying to append a file called datebook.txt. I want to append the end of each line containing the name Fred with three ***. I believe I need to make the * loose its meta character meaning in addition to using the append command. I have tried several variations of this command and I... (3 Replies)
i have a number of java files containing
eg:
--------------myfile.java--------------
package zip.fun.myfiles;
import java.*
import something..;
import sdfdfdsa;
...
...
--------------------------------------------
Now I need to append / insert a line as follows:
... (10 Replies)
I need to append a user to the end of a group in the /etc/group file
ftp::49:user1,user2...
what I want to to add a new user to the group file so that I won't have to open it up and append manually and I can't user "usermod" it fails
this user will be coming from a variable (11 Replies)
Discussion started by: slufoot80
11 Replies
LEARN ABOUT DEBIAN
stripchart
STRIPCHART(5) File Formats Manual STRIPCHART(5)NAME
stripchart - draws diagrams from data with PHP
SYNOPSIS
The script is expected to be called as a CGI script but also works from the command line.
DESCRIPTION
Stripchart prepares a series of diagrams directly from raw data. It is handy for web pages that need some graphics without too much over-
head.
OPTIONS -i input FILE
name of input data file (mandatory)
-o output FILE
name of output .gif file (default: STDOUT)
-O output FILE
name of output .gif file, also dumps to STDOUT
-f from TIME
stripchart with data starting at TIME (default: 24 hours ago)
-t to TIME
stripchart with data ending at TIME (default: now)
-r range RANGE
stripchart data centered around "from" time the size of RANGE (overrides -t)
-l last LINES
stripchart last number of LINES in data file (overrides -f and -t and -r)
-T title TITLE
title to put on graphic (default: FILE RANGE)
-x column X
time or "x" column (default: 2)
-y column Y
value or "y" column (default: 3)
-Y column Y'
overplot second "y" column (default: none)
-b baseline VALUE
overplot baseline of arbitrary value VALUE
-B baseline-avg
overrides -b, it plots baseline of computed average
-d dump low VALUE
ignore data less than VALUE
-D dump high VALUE
ignore data higher than VALUE
-v verbose
puts verbose runtime output to STDERR
-L log makes y axis log scale
-c colors "COLORS"
set gnuplot colors for graph/axisnts/data (default: "xffffff x000000 xc0c0c0 x00a000 x0000a0 x2020c0" in order: bground, axisnts,
grids, pointcolor1,2,3)
-C cgi output CGI header to STDOUT if being called as CGI
-s stats
turn extra plot stats on (current, avg, min, max)
-j julian times
time columns is in local julian date (legacy stuff)
-V version
print version number and exit
-h help
display this help
NOTES
* TIME either unix date, julian date, or civil date in the form:
YYYY:MM:DD:HH:MM (year, month, day, hour, minute)
If you enter something with colons, it assumes it is civil date
If you have a decimal point, it assumes it is julian date
If it is an integer, it assumes it is unix date (epoch seconds)
If it is a negative number, it is in decimal days from current time
(i.e. -2.5 = two and a half days ago)
* All times on command line are assumed to be "local" times
* All times in the data file must be in unix date (epoch seconds)
* RANGE is given in decimal days (i.e. 1.25 = 1 day, 6 hours)
* if LINES == 0, (i.e. -l 0) then the whole data file is read in
* columns (given with -x, -y, -Y flags) start at 1
* titles given with -T can contain the following key words which will
be converted:
FILE - basename of input file
RANGE - pretty civil date range (in local time zone)
the default title is: FILE RANGE
AUTHORS
Matt Lebofsky
2.21 November 2002 STRIPCHART(5)