10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
2. Shell Programming and Scripting
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
3. UNIX for Dummies Questions & Answers
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)
Discussion started by: citizencro
3 Replies
4. Shell Programming and Scripting
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)
Discussion started by: singerfc
22 Replies
5. Shell Programming and Scripting
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)
Discussion started by: sunrexstar
10 Replies
6. Shell Programming and Scripting
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)
Discussion started by: tamahomekarasu
6 Replies
7. Shell Programming and Scripting
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)
Discussion started by: smac
3 Replies
8. Shell Programming and Scripting
Hello,
I want to add string #REAL at the end of all lines that contain real numbers.
How to do this using sed ? (1 Reply)
Discussion started by: scotty_123
1 Replies
9. Shell Programming and Scripting
hi,
i have a file
file1 file2
----------- -----------------
aa bbb ccc 111 1111 1111
ddd eee fff 222 3333 4444
ggg hhh... (5 Replies)
Discussion started by: go4desperado
5 Replies
10. Shell Programming and Scripting
Hi folks,
Following a section in opmn.xml file:
</process-type>
<process-type id="OC4J_RiGHTv_IRD1" module-id="OC4J">
<environment>
<variable id="LD_LIBRARY_PATH" value="/home/ias/v10.1.2/lib" append="true"/>
<variable id="SHLIB_PATH"... (2 Replies)
Discussion started by: nir_s
2 Replies