Sponsored Content
Top Forums Shell Programming and Scripting Searching the pattern and accordingly changing the contents using shell Post 302860277 by Don Cragun on Saturday 5th of October 2013 01:05:55 PM
Old 10-05-2013
Is this a homework assignment?

Do you always want to add one user to the admins list and remove one user from the admins lists every time you call your script? Wouldn't it be better to use an option to indicate whether an invocation of your script was supposed to add or remove an arbitrary number of users (presented as operands) to or from the admins list?
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Searching contents of a file

Is there a way a command or a combination through which i can check the contents of a all files in a directory and get the return as the file names which contains the partiuclar string. (2 Replies)
Discussion started by: thepitzaboy
2 Replies

2. Shell Programming and Scripting

Pattern searching pattern in c files

I have a problem in searching a specific pattern in c files. My requirement: I have to find all the division operator in all cfiles. The problem is, the multi line comments and single line comments will also have forward slash in it. Even after avoiding these comments also, if both... (6 Replies)
Discussion started by: murthybptl
6 Replies

3. Shell Programming and Scripting

searching and editing file contents

Can you please help me to edit parts of a file and write into a new file. ===================================== Suppose I have a huge data dump in a file I need to search for a tag in that and cut few lines around that tag in the file. Is there a way to keep track of line numbers and operate on... (18 Replies)
Discussion started by: jayana
18 Replies

4. Shell Programming and Scripting

Help needed in changing contents of portion of the file

Hi all, I need help on this. I have a file with 4500 bytes. I want to modify the contents of line from 1357 through 3208. 1. Starting 1357, there is 35 occurence of 40 bytes data making it to 2757. 2. The remaining 451 filler with spaces taking it to 3208. Now, the 40 byte data is... (2 Replies)
Discussion started by: jakSun8
2 Replies

5. Shell Programming and Scripting

searching for a pattern

can anybode tell me ? I want to search for a pattern present in a whole directory and subdirectories's files containg " crat" I tried grep -r "crat" */* ; is it right ? (3 Replies)
Discussion started by: pranabrana
3 Replies

6. Shell Programming and Scripting

Searching a pattern in file and deleting th ewhole line containing the pattern

Hi All, Please can someone assist in the script I have made that searches a pattern in a file and delete the whole line containing the pattern. #!bin/sh # The pattern that user want to add to the files echo "Enter the pattern of the redirect" read value # check if the user has... (1 Reply)
Discussion started by: Shazin
1 Replies

7. Shell Programming and Scripting

Create Multiple files by reading a input file and changing the contents

Being new to this area .I have been assigned a task which i am unable to do . Can any one please help me . Hi I have requirement where i have input file XYZ_111_999_YYYYMMDD_1.TXT and with header and series of Numbers and Footer. I want to create a mutiple output files with each file having a... (2 Replies)
Discussion started by: bhargavkr
2 Replies

8. UNIX for Dummies Questions & Answers

Pattern searching

Hi, I need small help from you people. In a directory there are around 150 odd files and few them contain the word "TRACK" and few are not. How can I find out the the list of those files which doesn't contain the word "TRACK"? Thanks, Siba (4 Replies)
Discussion started by: siba.s.nayak
4 Replies

9. Shell Programming and Scripting

Problem with the awk in searching the contents in a file

Hello all, I am a newbie in awk. I am struggling in this problem for a long.Actually I have two files, filea and fileb. File a is actually a search key through it I have to find the corresponding japanese tag from file b. filea contains the data like this: sm982882 sm1893548 sm2420025... (3 Replies)
Discussion started by: csim_mohan
3 Replies

10. Shell Programming and Scripting

Searching for a pattern and extracting records related to that pattern

Hi there, Looking forward to your advice for the below: I have a file which contains 2 paragraphs related to a particular pattern. I have to search for those paragraphs from a log file and then print a particular line from those paragraphs. Sample: I have one file with the fixed... (3 Replies)
Discussion started by: danish0909
3 Replies
ANUBISADM(1)						      General Commands Manual						      ANUBISADM(1)

NAME
anubisadm - interface for GNU Anubis database administration SYNOPSIS
anubisadm anubisadm [COMMAND] [OPTIONS] URL DESCRIPTION
This manual page documents briefly the anubisadm command. anubisadm is a program for GNU Anubis database manipulation. OPTIONS
A summary of options is included below: COMMAND is one of: -c, --create Creates the database. -l, --list List the contents of an existing database. -a, --add Add a new record. -m, --modify Modify existing record. -r, --remove Remove existing record. --version Display program version number and exit. --help Display this help screen and exit. OPTION is one or more of: -i, --authid=STRING Specify the authid to operate upon. This option is mandatory with --add, --modify and --remove. It is optional when used with --list. -p, --password=STRING Specify the password for the authid. Mandatory with --add, --modify and --remove. -u, --user=STRING Specify the system user name corresponding to the given authid. Optional for --add, --modify and --remove. -f, --rcfile=STRING Specify the rc file to be used for this authid. Optional for --add, --modify and --remove. SEE ALSO
anubis(1), anubisusr(1), AUTHOR
anubisadm was written by The Anubis Team (read the AUTHORS file). This manual page was prepared by Krzysztof Burghardt <krzysztof@burghardt.pl>, for the Debian project (but may be used by others). 2007 Sep 09 ANUBISADM(1)
All times are GMT -4. The time now is 02:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy