Hi,
how could you go about removing words that begin with a certain character.
assuming that this character is '-' I currently have
echo "-hello" | sed s/-/""/
which replaces the leading dash with nothing but I want to remove the whole word, even if there are multiple words beginning... (3 Replies)
Hi,
I have file a.txt as below. I want to add one string root beginning of each line.
Sample file a.txt
aaa
bbb
ccc
Sample output
Root aaa
Root bbb
Root ccc
Can any one help me on this? (6 Replies)
Greetings.
I am a UNIX newbies.
I am currently facing difficulties dealing with a large data set and I would like to ask for helps. I have a input file like this:
ak 1 AAM1
ak 2 AAM1
ak 3 AAM1
ak 11 AMM2
ak 12 AMM2
ak 13 AMM2
ak 14 AMM2
Is there any possibility for me to... (7 Replies)
about 200 files with names as
11_0.pdb
11_60.pdb
12_12.pdb
14_180.pdb
are there in my library...I need to rename all of them by addinf File in front of them as:
File11_0.pdb
File11_60.pdb
File12_12.pdb
File14_180.pdb
I checked many threads but it seems i get even more confused..i... (1 Reply)
Hi,
I am doing something like below:
cat file1>file3and
cat file2>>file3
I wanted to check if there is a way to write a custom message(hardcoded message)something like below at the beginning of each line then PIPE delimitiation and then followed by remaining record.
cat file1... (7 Replies)
My file has the entries like below...
/dev/sds
/dev/sdak
/dev/sdbc
/dev/sdbu
I want to make the file like below
echo 1 > /sys/block/sds/device/rescan
echo 1 > /sys/block/sdak/device/rescan
echo 1 > /sys/block/sdbc/device/rescan
echo 1 > /sys/block/sdbu/device/rescan (2 Replies)
Hi all and apologies for the silly question, but I've searched and I can't get this right.
I have a list of email addresses in a file that I need to blacklist (spam). the list is quite long and I would need to script a small routine so that I can get the following for each line in the file:
db... (4 Replies)
I am trying to write a command and need to count all the words within the file which begin with the letter S
I have run this command
$ grep '^' TheAgileApproach.dat | wc -l
0
$ grep '^' TheAgileApproach.dat | wc -l
1
When I remove the wc -l I see the output as below:
$ grep '^'... (7 Replies)
Discussion started by: simpsa27
7 Replies
LEARN ABOUT OPENSOLARIS
indxbib
indxbib(1) User Commands indxbib(1)NAME
indxbib - create an inverted index to a bibliographic database
SYNOPSIS
indxbib database-file...
DESCRIPTION
indxbib makes an inverted index to the named database-file (which must reside within the current directory), typically for use by look-
bib(1) and refer(1). A database contains bibliographic references (or other kinds of information) separated by blank lines.
A bibliographic reference is a set of lines, constituting fields of bibliographic information. Each field starts on a line beginning with
a `%', followed by a key-letter, then a blank, and finally the contents of the field, which may continue until the next line starting with
`%'.
indxbib is a shell script that calls two programs: /usr/lib/refer/mkey and /usr/lib/refer/inv. mkey truncates words to 6 characters, and
maps upper case to lower case. It also discards words shorter than 3 characters, words among the 100 most common English words, and num-
bers (dates) < 1000 or > 2099. These parameters can be changed.
indxbib creates an entry file (with a .ia suffix), a posting file (.ib), and a tag file (.ic), in the working directory.
FILES
/usr/lib/refer/mkey
/usr/lib/refer/inv
x.ia entry file
x.ib posting file
x.ic tag file
x.ig reference file
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------------------------------------+
|ATTRIBUTE TYPE ATTRIBUTE VALUE |
|Availability SUNWdoc |
+-----------------------------------------------------------+
SEE ALSO addbib(1), lookbib(1), refer(1), roffbib(1), sortbib(1), attributes(5)BUGS
All dates should probably be indexed, since many disciplines refer to literature written in the 1800s or earlier.
indxbib does not recognize pathnames.
SunOS 5.11 14 Sep 1992 indxbib(1)