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
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
6. Shell Programming and Scripting
Many of my servers' /etc/group file have many userid's that does not exist in /etc/passwd file and they need to be deleted.
This happened due to manual manipulation of /etc/passwd files.
I need to do this for 40 servers.
Can anyone help me in achieving this? Even reducing a step or two will be... (6 Replies)
Discussion started by: pdtak
6 Replies
7. 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
8. 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
9. 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
10. UNIX for Dummies Questions & Answers
: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)
Discussion started by: Redg
5 Replies