My requirement is to grep for first apperence of GROUP A which is not commented and append my name to end of file.
I tried the below...but it is appending to each line where GROUP A is there.
Last edited by pludi; 02-14-2011 at 08:38 AM..
Reason: please use code tags
I have a text wich looks like this:
clid=2 cid=6 client_database_id=35 client_nickname=Peter client_type=0|clid=3 cid=22 client_database_id=57 client_nickname=Paul client_type=0|clid=5 cid=22 client_database_id=7 client_nickname=Mary client_type=0|clid=6 cid=22 client_database_id=6... (3 Replies)
I am trying to replace in multiple files every instance of text that begins with http and add hyperlink characters to it. I can get it to work with the following:sed -e "s/http*.*/<a href=\"&\">&<\/a>/g" *
as long as the http text is at the end of the file. I need it to stop at the end of the... (2 Replies)
Hi Experts,
Is there a way to find a string in a file then append a character to that string then save the file or save to another file.
Here is an example.
>cat test.txt
NULL
NULL
NULL
9,800.00
NULL
1,234,567.01
I want to find all NON NULL String and add a dollar sign to those... (9 Replies)
Hi,
I need to replace and append a string in a text if grep is true. For eg:
grep ABC test.txt | grep -v '\.$' | awk {'print $4'} | sed "s/ ?
How do I replace all instances of "print $4" using sed with another sring? Eg of the string returned will be,
lx123
web222
xyz
Want to... (8 Replies)
Hi,
I have a File, which have multiple rows.
Like below
123456 Test1 FNAME JRW#$% PB MO Approver XXXXXX. YYYY
123457 Test2 FNAME JRW#$% PB MO Super XXXXXX. YYYY
123458 Test3 FNAME JRW#$% PB MO Approver XXXXXX. YYYY
I want to search a line which contains PB MO Approver and append... (2 Replies)
Hi All,
I'm trying to insert a string into a file at a specific location.
I'd like to add a string after the parent::__construct(); in my file.
<?php if (! defined('BASEPATH')) exit('No direct script access allowed');
class MY_Controller extends CI_Controller {
function... (6 Replies)
Hi,
$ cat f1
My name is Bruce and my surname is
I want to use SED to find “Bruce” and then append “ Lee” to the end of the line in which “Bruce” is found
Then a more tricky one…. I want to INSERT ….a string… in to a line in which I find sometihng. So example
$ cat f2
My name is... (9 Replies)
Looking to add text to a file, example
File example;
nodegroups:
check-hosts: L@host.domain.com,host2.domain.com,host3.domain.com
I need to take a file with a one line list of hosts separated by commas
host.domain.com,host2.domain.com,host3.domain.comand prepend the string " ... (6 Replies)
Discussion started by: bash_in_my_head
6 Replies
LEARN ABOUT HPUX
ftpgroups
ftpgroups(4) Kernel Interfaces Manual ftpgroups(4)NAME
ftpgroups - group password file for use with the SITE GROUP and SITE GPASS commands.
SYNOPSIS DESCRIPTION
The file is the group password file for use with the SITE GROUP and SITE GPASS commands.
To enable the use of this file, the entry must be made in the configuration file
This file contains an alphanumeric string, encrypted password, and the actual group name from the file. Each entry is separated by After a
user logs in, the SITE GROUP and SITE GPASS commands may be used to specify an enhanced access group and associated password. If the group
name and password are valid, the user becomes (via a member of the group specified in the group access file,
The format of the group access file is:
where access_group_name is an arbitrary (alphanumeric and/or punctuation) string. encrypted_password is the password encrypted via
crypt(3), exactly like in real_group_name is the name of a valid group listed in
NOTE: For this option to work for anonymous FTP users, the ftp server must keep permanently open and the group access file is loaded into
memory. This means that:
(1) the ftp server now has an additional file descriptor open, and
(2) the necessary passwords and access privileges granted to users via SITE GROUP will be static for the duration of an FTP ses-
sion.
If you have an urgent need to change the access groups and/or passwords *NOW*, then kill all of the running FTP servers.
FILES AUTHOR
was developed by the Washington University, St. Louis, Missouri.
SEE ALSO ftpaccess(4).
ftpgroups(4)