:confused: There is a flat file on my system which contains email addreses of people in my company. This file is utilized when sending notifications for various things. However nobody knows where this file is located or what it is named. The only thing we know is the email address of a user who... (4 Replies)
Dear Experts,
Please help to teach me how to add the filename into the file content.
Actually the file name are EVENTS-20050912.
***************New output that I want***************
EVENTS-20050912 03:33:37 ALARM: BTSSPAN-277-1 30-18013
EVENTS-20050912 12:10:28 ALARM: BTSSPAN-297-2... (1 Reply)
Hi,
I've a shell script e.g.
#!/bin/bash
echo "Enter the next hop id"
read nhid
echo "enter the IP address"
read IP
echo "enter the interface name"
read name
echo "enter the enable/disable state"
read state
exit 0
now from this script i want to search strings in another (.cam)
... (6 Replies)
Hi i want to write a script that will search a filename e.g. test06abc.txt for a string and if it contains this string then set a variable equal to something:
something like:
var1=0
search <filename> for 06
if it contains 06 then
var1=1
else
var1=0
end if
but in unix script :) (4 Replies)
Hi All,
How do I search first string & second string and copy all content between them from one file to another file?
Please help me..
Thanks In Advance.
Regards,
Pankaj (12 Replies)
I am attempting to grep an exact string from a series of files within a directory and append that output to the filename when it is present in the file. I've been after this all day with no luck. Thanks for your help in advance :wall:. (4 Replies)
Hi,
Need your help for this scripting issue I have. I am not really good at this, so seeking your help.
I have a file looking similar to this:
Hello, i am human and name=ABCD.
How are you?
Hello, i am human and name=PQRS.
I am good.
Hello, i am human and name=ABCD.
Good bye.
Hello, i... (12 Replies)
This should recursively walk through all dirictories and
search for a specified string in all present files, if found
output manicured content (eg some regex) with CAT into
a specified directory (eg /tmp/)
one by one, keeping the original names
This is what I have so far, which seems to... (1 Reply)
Hello,
Is possibly there a way to prepend the filename to its content without a third file? The reason is to add a header to each file contents to distinguish each other when they are pasted side-by-side.
sample.txt:
XLOC_001 0
XLOC_002 23
XLOC_003 4
XLOC_012 6output (with the same... (4 Replies)
Discussion started by: yifangt
4 Replies
LEARN ABOUT CENTOS
lkbib
LKBIB(1) General Commands Manual LKBIB(1)NAME
lkbib - search bibliographic databases
SYNOPSIS
lkbib [ -v ] [ -ifields ] [ -pfilename ] [ -tn ] key...
It is possible to have whitespace between a command line option and its parameter.
DESCRIPTION
lkbib searches bibliographic databases for references that contain the keys key... and prints any references found on the standard output.
lkbib will search any databases given by -p options, and then a default database. The default database is taken from the REFER environment
variable if it is set, otherwise it is /usr/dict/papers/Ind. For each database filename to be searched, if an index filename.i created by
indxbib(1) exists, then it will be searched instead; each index can cover multiple databases.
OPTIONS -v Print the version number.
-pfilename
Search filename. Multiple -p options can be used.
-istring
When searching files for which no index exists, ignore the contents of fields whose names are in string.
-tn Only require the first n characters of keys to be given. Initially n is 6.
ENVIRONMENT
REFER Default database.
FILES
/usr/dict/papers/Ind Default database to be used if the REFER environment variable is not set.
filename.i Index files.
SEE ALSO refer(1), lookbib(1), indxbib(1)Groff Version 1.22.2 7 February 2013 LKBIB(1)