9 More Discussions You Might Find Interesting
1. Homework & Coursework Questions
Good evening, I'm trying to do my own shell and I encountered some issues while creating it. Indeed when I try such a command I have
DAUPHINE> DAUPHINE> ls -l | grep terminal > fichier
DAUPHINE> cat fichier
My shell is named DAUPHINE
Whereas I should have:
... (0 Replies)
Discussion started by: AntoineCompagni
2. Shell Programming and Scripting
I am learning shell scripting for the first time. I use AT&T Korn Shell, Version AJM 93u+ 2012-08-01, compiled from source on NetBSD.
So far I have managed to set up what I think is a useful and pleasing shell prompt, which can be seen in the image attached to this post.
The prompt is... (2 Replies)
Discussion started by: gezley
Dear all experts,
I have a script written to compress a list of files, during compressing, some of the files are having same name. When the compressing started, the same name file will be prompted with message whether to overwrite the old file. I need to enter "y" to continue.
Is there any way I... (7 Replies)
Discussion started by: kwliew999
4. Shell Programming and Scripting
I want to change the shell prompt, using the cd command.
I have a shell prompt like this -
Now i do this -
p78-mfx(dgaw1078/9781)$ cd log4j
here the shell prompt should change like this -
p78-mfx(dgaw1078/9781)log4j$ (6 Replies)
Discussion started by: arunkumarmc
5. Shell Programming and Scripting
I'm new to working with pipes, so I don't know whether the following is expected behaviour or a bug on the part of an application.
Since Version 0.47, Inkscape provides a non-GUI interactive shell mode of operation. I am trying to time the program's performance in converting SVG files to PNG... (1 Reply)
Discussion started by: ccprog
6. UNIX for Advanced & Expert Users
I saw something in weird in Shell prompt.
I did the following steps
1) Typed ls -l and pressed ESC without entering
2) Typed "v" (please notice that I did not type "i" after "v"), which opened vi editor
3) I see the "ls -l" command that I typed in shell prompt
4) Without modifying... (6 Replies)
Discussion started by: bobbygsk
7. UNIX for Dummies Questions & Answers
currently, I set my prompt in my .cshrc file as:
set prompt = "%B%h %m %P %/ \n% "
I have to use certain shells for some specific tasks and would like to set different prompts depending on the type of shell that I am using. Any advice?
Thanks (3 Replies)
Discussion started by: dranNfly
8. UNIX for Dummies Questions & Answers
Hi, I´m using SCO Unix 5.0.5 and I want to configure de variable PS1, so when I type the command:
the prompt shows
Is that possible with sh shell? I´ll appreciate your help.
Thanks, a Happy New Year! (1 Reply)
Discussion started by: diegoe
9. UNIX for Dummies Questions & Answers
When I login to a specific machine (running Solaris 2.8; actually serveral machines behave this way), with a known good account, I don't get any shell prompt, and no screen responses to various commands such as ID and PWD. Any ideas on what is causing this, and how to change this behavior? (2 Replies)
Discussion started by: Mufasa
print(1) User Commands print(1)
print - shell built-in function to output characters to the screen or window
print [ -Rnprsu [n]] [arg...]
The shell output mechanism. With no flags or with flag - or -, the arguments are printed on standard output as described by echo(1).
The following options are supported:
-n suppresses new-line from being added to the output.
-r (raw mode) ignore the escape conventions of echo. The -R option will print all subsequent arguments and options other than
-p causes the arguments to be written onto the pipe of the process spawned with |& instead of standard output.
-s causes the arguments to be written onto the history file instead of standard output.
-u [ n ] flag can be used to specify a one digit file descriptor unit number n on which the output will be placed. The default is 1.
The following exit values are returned:
0 Successful operation.
>0 Output file is not open for writing.
See attributes(5) for descriptions of the following attributes:
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|Availability |SUNWcsu |
echo(1), ksh(1), attributes(5)
SunOS 5.10 15 Apr 1994 print(1)