04-06-2009
Hello Milhan,
on top of what Pederabo has suggested.., the oter easy way to get working similar to aliases are using a set command..
C:\Documents and Settings\ilango\test>set dira=dir /A
C:\Documents and Settings\ilango\test>dir
Volume in drive C has no label.
Volume Serial Number is 548F-C2AD
Directory of C:\Documents and Settings\ilango\test
04/06/2009 12:13 PM <DIR> .
04/06/2009 12:13 PM <DIR> ..
04/06/2009 12:13 PM 4 normal.txt
1 File(s) 4 bytes
2 Dir(s) 6,269,435,904 bytes free
C:\Documents and Settings\ilango\test>%dira%
Volume in drive C has no label.
Volume Serial Number is 548F-C2AD
Directory of C:\Documents and Settings\ilango\test
04/06/2009 12:13 PM <DIR> .
04/06/2009 12:13 PM <DIR> ..
04/06/2009 12:13 PM 4 hidden.txt
04/06/2009 12:13 PM 4 normal.txt
2 File(s) 8 bytes
2 Dir(s) 6,269,403,136 bytes free
C:\Documents and Settings\ilango\test>
In teh above example, i made simiar to alias - dira to be executed as dir /A, only thing is you will have to use it with percentages.. as in %dira%
/ilan
10 More Discussions You Might Find Interesting
1. Windows & DOS: Issues & Discussions
This question maybe in the wrong category but I'm posting here due to urgency.
In DOS is there a command to perform a similar function to spool command in SQL or Script command in UNIX?
I want to print all command line output to a file but I don't want to use the echo command for each line.
... (2 Replies)
Discussion started by: stevefox
2 Replies
2. UNIX for Dummies Questions & Answers
I have navigated every DOS and UNIX FAQ to find the DOS equivalent of the UNIX ps command (ps -f would be even better) but all listings of DOS<>UNIX commands do not have it (they all have the same basic commands listed). DOS must have a way of detecting running processes and TSRs. mem /c is the... (7 Replies)
Discussion started by: dancingfool
7 Replies
3. UNIX for Advanced & Expert Users
I need to set the serial port attributes to 9600,7,E,1 in order to read and write data to it from within a Foxpro program. Unfortunately there is no function in Foxpro to set the line attributes, only open. close read and write.
Stty only works on the stdout and stdin in this release, and the... (3 Replies)
Discussion started by: jgt
3 Replies
4. UNIX for Dummies Questions & Answers
Hi all,
what is the equivalent command of the DOS set that lists all the environment variable and their values?
Xavier. (3 Replies)
Discussion started by: xxavier
3 Replies
5. Shell Programming and Scripting
Dear All
Could you please advice how do we convert a unix file to dos
I know one command,ux2dos, which somehow does not work to give desired output
Inputs on this is appreciated
Thanks,
Suresh (3 Replies)
Discussion started by: sureshg_sampat
3 Replies
6. Windows & DOS: Issues & Discussions
In Unix I can use command line to do a find for files older than so many days and remove them. I can also capture the date to see if its a saturday and do something different. Are there any dos/intel command line equivalent commands to do this on a windows 2003 server? This is from an... (6 Replies)
Discussion started by: MizzGail
6 Replies
7. AIX
i know after you do something in smitty via the gui, you can click something in smitty that will show you how to do the same thing via the command line, (not using the gui) can anyone tell me how (2 Replies)
Discussion started by: asyed123
2 Replies
8. Windows & DOS: Issues & Discussions
Hi,
The title of this post is a little vague but I couldn't think of what to call it.
In Unix you can perform the following command
ftp -v IPADDRESS <<END
put FILE
END
In a DOS command prompt, is it possible to do the same kind of thing that the "<<END" does?
So for example, ... (4 Replies)
Discussion started by: Ste_Moore01
4 Replies
9. UNIX for Dummies Questions & Answers
hi all, i'm trying to do this exercise, i want to create a script that can substitute WC command in unix, can someone help me? (11 Replies)
Discussion started by: Marina2013
11 Replies
10. Shell Programming and Scripting
Well,
this command has served me quite well under DOS
for %%X in (*.txt) do COMMAND
however in linux it just outputs:
"./install.sh line 1: '%%x': not a valid identifier.
Ideas ?
Thanks in advance (2 Replies)
Discussion started by: pasc
2 Replies
nroff(1) General Commands Manual nroff(1)
Name
nroff - format text
Syntax
nroff [option...] [file...]
Description
The command formats text in the named files for typewriter-like devices. For further information, see the appropriate *roff reference
pages. The full capabilities of are described in the "Nroff/Troff User's Manual" found in the Supplementary Documents, Volume 1: General
User.
If no file argument is present, the standard input is read. An argument consisting of a single minus (-) is taken to be a file name corre-
sponding to the standard input.
Options
The options, which may appear in any order so long as they appear before the files, are:
-olist Print only pages whose page numbers appear in the comma-separated list of numbers and ranges. A range N-M means pages N
through M; an initial -N means from the beginning to page N; and a final N- means from N to the end.
-nN Number first generated page N.
-sN Stop every N pages. The command halts prior to every N pages (default N=1) to allow paper loading or changing, and resumes
upon receipt of a new line.
-mname Prepend the macro file to the input files.
-raN Set register a (one-character) to N.
-i Read standard input after the input files are exhausted.
-q Invoke the simultaneous input-output mode of the rd request.
-Tname Prepare output for specified terminal. Known names are the tabname files in The default name is tab37 for the Teletype Corpo-
ration Model 37 terminal.
-e Produce equally-spaced words in adjusted lines, using full terminal resolution.
-h Use output tabs during horizontal spacing to speed output and reduce output character count. Tab settings are assumed to be
every 8 nominal character widths.
Files
/tmp/ta* temporary file
/usr/lib/tmac/tmac.* standard macro files
/usr/lib/term/* terminal driving tables for
See Also
col(1), tbl(1), term(5), man(7), me(7), ms(7), term(7)
The Big Gray Book: The Next Step with ULTRIX
"Nroff/Troff User's Manual" and "A TROFF Tutorial" in the Supplementary Documents, Volume 1: General User
nroff(1)