:confused:
I have a script that Cats a flat database file which contains 12 columns into sed. I want to add a 13th column which includes " ,2005-08-29 " * The date needs to be the current date.
This 13th column would be appended to the end of each line.
Does anyone have a clue... (5 Replies)
Hi All,
I have been trying to format a file using sed. I can't seem to get the syntax right. I want to append the string from file1.txt to file1.csv with the final output file being file2.csv, but before the string is appended to the end of each line, first insert a comma.
Here is the sed... (2 Replies)
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)
I keep trying to append some astrix to the end of a line, but it keeps overwriting at the front of the line.
These are the originals
Fred Fardbarkle:674-843-1385:20 Parak Lane, Duluth, MN 23850:4/12/23:780900
Fred Fardbarkle:674-843-1385:20 Parak Lane, Duluth, MN 23850:4/12/23:780900
... (5 Replies)
I want to append matched output and cat the results into an variable. but I've been running into problems. sed is printing result on to screen instead of appending the output to $CAPTURE. I'm stumped...how should i fix this?
contents of $TEST
10.0.0.1
10.0.0.2
10.0.0.3
10.0.0.4
expected... (5 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)
Discussion started by: linuxadmin
10 Replies
LEARN ABOUT ULTRIX
group
group(5yp)group(5yp)Name
group - group file in a Yellow Pages environment
Description
For each group, the file contains:
Group name
Encrypted password
Numerical group ID
Comma-separated list of all users allowed in the group
This is an ASCII file. The fields are separated by colons. Each group is separated from the next by a new-line. If the password field is
null, no password is needed.
This file resides in the directory. Because of the encrypted passwords, it can and does have general read permission and can be used, for
example, to map numerical group ID's to names.
A group file can have a line beginning with a plus (+), which means to incorporate entries from the Yellow Pages. There are two styles of
+ entries: All by itself, + means to insert the entire contents of the Yellow Pages group file at that point; +name means to insert the
entry (if any) for name from the Yellow Pages at that point. If a + entry has a password or group member field that is not null, the con-
tents of that field will override what is contained in the Yellow Pages. The numerical group ID field cannot be overridden.
Examples
+myproject:::bill, steve
+:
If these entries appear at the end of a group file, then the group myproject will have members bill and steve, and the password and group
ID of the Yellow Pages entry for the group myproject. All the groups listed in the Yellow Pages will be pulled in and placed after the
entry for myproject.
Restrictions
The command will not change group passwords.
Files
ULTRIX file system group file
Yellow Pages group map
See Alsoyppasswd(1yp), setgroups(2), crypt(3), initgroups(3x), passwd(5yp)group(5yp)