Need to make change in a file


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Need to make change in a file
# 8  
Old 10-23-2012
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Make change to variable value inside of awk script

Hello, I have text data that looks like this, Mrv16a3102061815532D 6 6 0 0 0 0 999 V2000 -0.4018 1.9634 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0 -1.1163 1.5509 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0 -1.1163 0.7259 ... (9 Replies)
Discussion started by: LMHmedchem
9 Replies

2. Shell Programming and Scripting

Add character to specific columns using sed or awk and make it a permanent change

Hi, I am writing a shell script where I want that # should be added in all those lines as the first character where the pattern matches. file has lot of functions defined a.sh #!/bin/bash fn a { beautiful evening sunny day } fn b { } fn c { hello world .its a beautiful day ... (12 Replies)
Discussion started by: ashima jain
12 Replies

3. UNIX for Dummies Questions & Answers

Will authconfig make permanent change or lost after reboot?

Hi, I made following configuration to create user directory: # authconfig --enablemkhomedir --update But the directory is created as permission 755, I'd like to modify the script to change directory access permission to 700, where is the script which copies /etc/skel to /home... (0 Replies)
Discussion started by: hce
0 Replies

4. UNIX for Dummies Questions & Answers

Cannot make sudoers change work

I logged in as root and visudo'd /etc/sudoers. I found several users with the username ALL=(ALL) ALL entries and added an account after the last one. Saved the file. When the user logs in and does "sudo su -" they are prompted for their password and then told they are not in the sudoers file.... (8 Replies)
Discussion started by: rpm_on_lnx
8 Replies

5. Shell Programming and Scripting

ksh; Change file permissions, update file, change permissions back?

Hi, I am creating a ksh script to search for a string of text inside files within a directory tree. Some of these file are going to be read/execute only. I know to use chmod to change the permissions of the file, but I want to preserve the original permissions after writing to the file. How can I... (3 Replies)
Discussion started by: right_coaster
3 Replies

6. Programming

using dbx: I can't make it watch a variable change?! Help, please!

(I have mentioned about this situation and arisen problems in another thread: Is there a limit for a code line length in C?, but those questions are OffTop for that subject; so I open a new topic, here.) The main problem is that I have some situation in my program where memory has been changed... (2 Replies)
Discussion started by: alex_5161
2 Replies

7. UNIX for Dummies Questions & Answers

how to change the destination directory of a make install

Hi there, I'm installing the sleuthkit from sources (because the debian package is crap). So I go threw the process of wget + tar + configure + make + make install. At the end, all the executables and libraries are in /usr/local/bin/, /usr/local/lib/, /usr/local/share/... How can I do to... (3 Replies)
Discussion started by: chebarbudo
3 Replies

8. Programming

makeutility: how to get the make-file name inside of the make-file?

How I can get the current make-file name in a make-file So, if I run make with specified file:make -f target.mak is it possible to have the 'target' inside of the that 'target.mak' from the file name? (2 Replies)
Discussion started by: alex_5161
2 Replies

9. UNIX for Dummies Questions & Answers

How to make ulimit change permanent

ulimit -a gives the following output:$ulimit -a time(seconds) unlimited file(blocks) 2097152 data(kbytes) 131072 stack(kbytes) 16384 memory(kbytes) unlimited coredump(blocks) 32768 nofiles(descriptors) 400 vmemory(kbytes) 147456 Abot output... (3 Replies)
Discussion started by: nervous
3 Replies

10. Shell Programming and Scripting

How to make the same change in multiple shell scripts?

I would like to make the same change in multiple shell script files and would like to know if anyone can be of some help? I would appreciate it. (4 Replies)
Discussion started by: rdakhan
4 Replies
Login or Register to Ask a Question
ypmake(8yp)															       ypmake(8yp)

Name
       ypmake - rebuild yellow pages (YP) database using the make command

Syntax
       cd /etc/yp
       make [ options ] [ map ]

Description
       The  command  uses  the to build the yellow pages database.  With no arguments, creates databases for any YP maps that are out-of-date, and
       then executes to notify slave databases that there has been a change.  It is important to note that the command should only be executed	at
       a  YP  master  server  machine.	If it is executed from either a slave server or a pure YP client machine, the created changes will only be
       overwritten when the next YP master server machine update, using is performed.

       The options argument can be used to change the default values of three special variables used by DIR , NOPUSH , and DOM .  The DIR variable
       instructs  to  give  the  directory  of the source files.  The NOPUSH variable, which when non-null, inhibits updating of the new data base
       files using the function.  The DOM variable, instructs to construct a domain other than the master's default domain.  The default  for  DIR
       is  and	the default for NOPUSH is the null string.  To change the default values of these special variables, an options argument format of
       special_variable = value is used.  See the Examples section for an example.

       The map argument supplied on the command line instructs to update only the specified map.  The specified maps are those	located  at  where
       {domain}  is  the  yellow  pages domain name.  Some typical entries for the map argument are passwd, hosts, and networks.  Typing causes to
       create and update the YP password database, if it is out of date.  The command updates the password data base using Therefore, typing
       make host
       or
       make networks
       causes to create and to update the host and network files, and respectively.

       See and for an overview of the yellow pages.

Examples
       This example causes to create a password yellow pages map for the domain instead of for the default domain:
       make DOM=NewDomain passwd

See Also
       make(1), makedbm(8yp), ypserv(8yp), yppush(8yp)

																       ypmake(8yp)