07-22-2008
grep "home" inputfile|head -1000>outputfile
7 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
2. Programming
I'm trying to make use of mkdir(char *pathname, S_IRWXU) to create the directories.
but it only creates one directory at a time. so I have to separate the tokens for "/home/blah1/blah2/blah3" as "home blah1 blah2 blah3" using delimiter "/", but it is again hectic to create such directory... (8 Replies)
Discussion started by: platinumedge
8 Replies
3. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
4. Shell Programming and Scripting
I have a bunch of random character lines like ABCEDFG. I want to find all lines with "A" and then change any "E" to "X" in the same line. ALL lines with "A" will have an "X" somewhere in it. I have tried sed awk and vi editor. I get close, not quite there. I know someone has already solved this... (10 Replies)
Discussion started by: nightwatchrenba
10 Replies
5. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
6. UNIX for Dummies Questions & Answers
Hello,
I have a question regarding extracting parts of a string and the meaning of # and % in the syntax. I created an example below.
# filename=/first/second/third/fourth
#
# echo $filename
/first/second/third/fourth
#
# echo "${filename##*/}"
fourth
#
# echo "${filename%/*}"... (3 Replies)
Discussion started by: shah9250
3 Replies
7. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT DEBIAN
roffit
roffit(1) roffit Manual roffit(1)
NAME
roffit - convert nroff to HTML
SYNOPSIS
roffit [options] < inputfile > outputfile
DESCRIPTION
roffit converts the inputfile to outputfile. The inputfile must be an nroff formatted man page, and the outputfile will be an HTML docu-
ment.
OPTIONS
--bare The output HTML will not include any HTML, HEAD or BODY tags. Also not that when this is selected, there will be no inlined CSS but
you will have to define the necessary classes yourself.
--version
Display version number and exit
--mandir=<dir>
Set a directory in which roffit will check for other man pages (in nroff [name].[num] format) that this one refers to. If found, a
<a href> link will be made to that page with a html extension instead of the number. The file name in the generated link will be
prefixed by the dir given with --hrefdir.
This works for references specified as manpage(3) (within the emhpasis foformatting) and in a plain .BR section (often used in the
SEE ALSO section).
--hrefdir=<dir>
Specify a directory to prefix generated href links created with the --mandir option. This defaults to ".".
CSS CLASSES
h2.nroffsh
The nroff ".SH" section. These are normally the "headlines" before each sub section within the man page.
p.nroffip
The nroff ".IP" section. These are normally the bullet kind used to list each option out of several in a list. Usually followed by a
p.level0 containining the descriptive text.
p.level0
Normal text at the first level. Normally not indented.
p.level1
Text at next logical indent level. Normally indented one level right.
p.level2
Text at the second logical indent level. Normally indented two levels right.
span.bold
Text marked to be bold.
span.manpage
Text marked as a reference to another man page.
span.emphasis
Text marked to be emphasized.
p.roffit
Used for the advertising final paragraph.
WWW
http://daniel.haxx.se/projects/roffit
roffit 0.6 27 Feb 2004 roffit(1)