10-10-2008
> edit in the sense you want to replace the first field with some other word keeping other intact??
yup that was what i meant
that is very simple to understand.
thank you very much
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am trying to edit multiple files from one directory and including all the files in all the sub directories. My string opens each file, puts the text on my screen and does not save the new information to the file. I am using a variable in my script, and wondering if that is what is choking it. ... (1 Reply)
Discussion started by: Skoshi
1 Replies
2. Shell Programming and Scripting
Hi
I have about 10 config files belonging to software that runs on SCO UNIX. These files contain, amongst many other things, a path which points to the software locations. We normally have to change them manually every time the software is coppied to a new location and when you gotta do a few... (45 Replies)
Discussion started by: Ypnos
45 Replies
3. Shell Programming and Scripting
Hi all,
I'm fairly new to scripting in linux and need some help.
I have an file that looks something like this:
~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Some comments
# Some comments
# Some comments
# Some comments
# Some comments
# Some comments
abc:/path/to/somewhere:X... (3 Replies)
Discussion started by: Avatar Gixxer
3 Replies
4. Programming
Is it possible to add - or edit - data (the strings) contained within the string table of an ELF executable?
I know I can access the string table with the following code;
while ((scn = elf_nextscn(m_elf, scn)) != 0) {
char *name = 0;
gelf_getshdr(scn, &shdr);
... (9 Replies)
Discussion started by: Dhodder
9 Replies
5. Solaris
hi guys,
We have to implement new local (/etc/default/login) USER security policy on almost 50 stations.
so editing /etc/default/login and /etc/default/passwd will be way too long work.
Can we do the same using some script, I mean editing the above files and putting variables as RETRIES=3, ... (5 Replies)
Discussion started by: Asteroid
5 Replies
6. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
Problem Statement for project:
When an account is created on the CS Unix network, a
public html directory is created in the account's home directory. A default web page is put into that directory.
Some users replace or... (13 Replies)
Discussion started by: peage1475
13 Replies
7. UNIX for Dummies Questions & Answers
Hello all. I am trying to make a script to edit any file by replacing a string with a string. The script should be able to be applied to any given file. for instance it should be able to replace "foo" with "bar" in the file myFile.txt. I know i need to make a back up file for this to work. I just... (2 Replies)
Discussion started by: iwatk003
2 Replies
8. UNIX for Dummies Questions & Answers
Hi All
I have a question.
I would like to edit some string characters by replacing with characters of choice located in another file. For example in sample file>S5_SK1.chr01
NNNNNNNNNNNNNNNNNNNCAGCATGCAATAAGGTGACATAGATATACCCACACACCACACCCTAACACTAACCCTAATCTAACCCTGGCCAACCTGTTT... (9 Replies)
Discussion started by: pawannoel
9 Replies
9. Shell Programming and Scripting
Hi guys got a problem here hope u all can help me. I learn that sed can actually edit a string but you need to know the old attribute to change to new 1.
Example: sed "s/$title:$author/$title:$Nauthor/g"
"Harry Potter - The Half Blood Prince:J.K Rowling:40.30:10:50"
Each delimiter : represent... (4 Replies)
Discussion started by: GQiang
4 Replies
10. Shell Programming and Scripting
Hi Geeks
I am working on trimming the logs and extracting the XMLs from it. I am facing one problem here.
My XML String is ending with
...........Request></Body></Envelope>S/R
sometimes there is more then just S/R in the end.
I want to delete anything comes after </Envelope>... (3 Replies)
Discussion started by: santy00110011
3 Replies
LEARN ABOUT DEBIAN
cdbs-edit-patch
CDBS-EDIT-PATCH(1) CDBS Documentation CDBS-EDIT-PATCH(1)
NAME
cdbs-edit-patch - create or edit a CDBS simple-patchsys.mk patch
SYNOPSIS
cdbs-edit-patch patchname
DESCRIPTION
cdbs-edit-patch creates or edits patches for use by the CDBS simple-patchsys.mk patch system. For more information about CDBS please see
the documentation under /usr/share/doc/cdbs/.
When patchname exists, cdbs-edit-patch will set up a temporary working source tree, apply all patches up to and including patchname in lex-
icographic order, and spawn an interactive shell for the developer. The developer can then edit files in this working tree. When the
developer is done and exits the shell, cdbs-edit-patch updates patchname to reflect the changes made. To abort the process from the inter-
active shell, exit with a nonzero exit value.
When patchname does not exist, cdbs-edit-patch will assume that a new patch should be created. As with the above scenario, cdbs-edit-patch
will first create a temporary working source tree and apply all patches up to the new patch in lexicographic order. When the shell is
quit, cdbs-edit-patch will create patchname.
AUTHOR
CDBS was written by Colin Walters and others. cdbs-edit-patch was written by Martin Pitt. This manual page was written by Peter Eisen-
traut based on the dpatch-edit-patch(1) manual page.
SEE ALSO
CDBS documentation in /usr/share/doc/cdbs/, /usr/share/cdbs/1/rules/simple-patchsys.mk, dpatch-edit-patch(1), quilt(1)
Debian 5 Feb 2006 CDBS-EDIT-PATCH(1)