Hi,
I have several lines like this ones:
123456789abcde /aa/bb/123456_$data.log
123456789abcde /aa/bb/123456_not_a_data_log
987654321ab /aa/bb/xpto123456_$data.log
...
How do I get into a variable the value "/aa/bb/123456_$data.log" , searching only for the beggining and ending... (3 Replies)
This is probably pretty simple butI'm not sure how to best go about it.
If I have
FILE="myBigLongFileName_1.xls"
FILE_PREFIX=`echo $FILE| cut -d"." -f1`
# that gives "myBigLongFileName_1"
All i want to do now is chop the "_1" from the end of $FILE_PREFIX
Any ideas anyone? (3 Replies)
Hi,
I have a value of a filepath in a variable
DATAFILE with value as "customtop/gpsore37/gepspo/1.0/bin/ashoka.csv
".
Now i want the value of last 4 charcters in to another variable.
That is EXTENSION = .csv
How can i do this in Shell scripting
Thanks in advance
Alla Kishore (8 Replies)
I need to check the occurrence of one string within another.
code
********************
if ;then do something done
********************
Thanks (7 Replies)
Hi
I use the below cmd to get the list of files that are modified than <temp> file in the <path> diretory
cmd:find <path> -name '*.zip' -type f -newer <temp> -print
i am getting all the list of files that are new or modified, with abs path, i want to copy all of these files to a... (3 Replies)
Hi,
I hav a string lets say aa.txt:bb:txt
length of the string can vary.. I have to keep the token inside a array and the delimiter is : plz send me the code (2 Replies)
Hi All,
I have a ouput string likes 'u8wos' or 'u10acsd' or somthing else 'u{number}{any characters}'and I want to get the number behind the letter 'u' by bash shell.
Thanks
Damon (11 Replies)
Hi,
My requirement is to get the substring and then remove special character.
Ex
I have data like T_SYSTEM_XXXXX_YYYY_ZZZ
I want to get XXXXXYYYYZZZ
the part after T_SYSTEM is varying it might be XXX_YY or just XX
can you tell me which all commands i have to use.
i understand i... (5 Replies)
Discussion started by: Mohammed_Tabish
5 Replies
LEARN ABOUT BSD
man
MAN(7) Miscellaneous Information Manual MAN(7)NAME
man - macros to typeset manual
SYNOPSIS
nroff -man file ...
troff -man file ...
DESCRIPTION
These macros are used to lay out pages of this manual. A skeleton page may be found in the file /usr/man/man.template.
Any text argument t may be zero to six words. Quotes may be used to include blanks in a `word'. If text is empty, special treatment is
applied to the next input line with text to be printed. In this way .I may be used to italicize a whole line, or .SM may be followed by .B
to make small bold letters.
A prevailing indent distance is remembered between successive indented paragraphs, and is reset to default value upon reaching a non-
indented paragraph. Default units for indents i are ens.
Type font and size are reset to default values before each paragraph, and after processing font and size setting macros.
These strings are predefined by -man:
*R `(Reg)', trademark symbol in troff.
*S Change to default type size.
FILES
/usr/share/tmac/tmac.an
/usr/man/man.template
SEE ALSO troff(1), man(1)BUGS
Relative indents don't nest.
REQUESTS
Request Cause If no Explanation Break Argument .B t no t=n.t.l.*Text t is bold. .BI
t no t=n.t.l. Join words of t alternating bold and italic. .BR t no t=n.t.l. Join words of t
alternating bold and Roman. .DT no .5i 1i...Restore default tabs. .HP i yes i=p.i.* Set pre-
vailing indent to i. Begin paragraph with hanging indent. .I t no t=n.t.l. Text t is italic. .IB
t no t=n.t.l. Join words of t alternating italic and bold. .IP x i yes x="" Same as .TP with tag
x. .IR t no t=n.t.l. Join words of t alternating italic and Roman. .LP yes - Same as
.PP. .PD d no d=.4v Interparagraph distance is d. .PP yes - Begin paragraph. Set
prevailing indent to .5i. .RE yes - End of relative indent. Set prevailing indent to amount of
starting .RS. .RB t no t=n.t.l. Join words of t alternating Roman and bold. .RI
t no t=n.t.l. Join words of t alternating Roman and italic. .RS i yes i=p.i. Start relative
indent, move left margin in distance i. Set prevailing indent to .5i for nested indents. .SH
t yes t=n.t.l. Subhead. .SM t no t=n.t.l. Text t is small. .TH n c x v m yes -Begin
page named n of chapter c; x is extra commentary, e.g. `local', for page foot center; v alters page foot left, e.g.
`4th Berkeley Distribution'; m alters page head center, e.g. `Brand X Programmer's Manual'. Set prevailing indent and
tabs to .5i. .TP i yes i=p.i. Set prevailing indent to i. Begin indented paragraph with hanging tag given
by next text line. If tag doesn't fit, place it on separate line.
* n.t.l. = next text line; p.i. = prevailing indent
7th Edition October 22, 1996 MAN(7)