Sponsored Content
Full Discussion: Changing the prompt in CSH
Top Forums Shell Programming and Scripting Changing the prompt in CSH Post 302857523 by ajayram_arya on Thursday 26th of September 2013 01:31:28 PM
Old 09-26-2013
No luck Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

current directory as part of the csh prompt

I would like my csh prompt to behave like the linux csh prompt setting done by linux command (set prompt="%n@%m %c]$ ") how do I do that? What I'm trying to do is that I would like to see what directory I'm in by looking at the prompt. I've figured out that %n is like $user, and %m is like... (3 Replies)
Discussion started by: jamesloh
3 Replies

2. UNIX for Dummies Questions & Answers

Changing the prompt

Phew simple question, I want to display the my directory path in prompt. Did the following in .profile PS1=`pwd` export PS! Worked, but it always points to HOME directory. When i do a cd, it doesn't change. What am i missing. Thanks (7 Replies)
Discussion started by: vibhor_agarwali
7 Replies

3. UNIX for Dummies Questions & Answers

Changing Prompt in sh

I know no one has ever asked this before {not :D } but I am trying to set the prompt in the .profile under sh. I have tried everything I have seen on the web in regards to this, with no success. The OS is SCO Unixware 7.1.1, {not by my choice}. All the examples I see seem to be for ksh, which is... (1 Reply)
Discussion started by: jcc5169
1 Replies

4. Solaris

Changing prompt

I currently have this as my prompt when I log in (shell is sh): PS1="`hostname ` # " My question is how do I add the current directory to that prompt? Is there a way? Thanks. (5 Replies)
Discussion started by: kjbaumann
5 Replies

5. UNIX for Advanced & Expert Users

Changing the password prompt

Is there any way I can change the prompt which asks for the password on a UNIX system? e.g. When I login using Telnet instead of "Password" I should get "Correct Password". Thanks, Vineet (3 Replies)
Discussion started by: vineetd
3 Replies

6. Shell Programming and Scripting

tcsh/csh: set prompt in production to color red

Hi folks This is our prompt at the moment oracle@pinkipinki:/opt/oracle> grep 'set prompt' .cshrc set prompt = "$user@`uname -n`:$cwd> " We wish to have in production the same prompt, but red. Howto do that? I tried a lot a internet manuals, but it doesn't work. (1 Reply)
Discussion started by: slashdotweenie
1 Replies

7. Shell Programming and Scripting

Changing the shell prompt

Hi, I want to change the shell prompt, using the cd command. I have a shell prompt like this - p78-mfx(dgaw1078/9781)$ 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
6 Replies

8. Shell Programming and Scripting

Changing the file name to a different one using csh

I have a file name n10-z30-dsr65-ndelt1.00-varp0.08-16x12drw-csq-msf.ps and I want to remove the varp info tag to get n10-z30-dsr65-ndelt1.00-16x12drw-csq-msf.ps Trying to use tr, but when I tried replacing varp with ooo I am getting the results below: echo... (2 Replies)
Discussion started by: kristinu
2 Replies

9. UNIX for Dummies Questions & Answers

Problem in C shell (csh) prompt setting containing the '$' char

Hi, I am trying to customize the command prompt of the C shell as follows: set prompt=" " The above one works fine but when I try to add a '$' (dollar) symbol into the string as set prompt=" " I am getting the error as: Illegal variable name However, this one set prompt = "-- %T %n %~ --... (2 Replies)
Discussion started by: royalibrahim
2 Replies

10. Shell Programming and Scripting

Changing script from csh to bash

Hello Guys I have a script working fine on csh, but I would like to change it to bash, how I should change this command to be able to work as bash script. :wall: if ( $fsw > "0" ) then foreach swath ( `awk 'BEGIN {for (i='$fsw';i<='$lsw';i++) printf ("%s\n", i) }'` ) ## work to be done... (2 Replies)
Discussion started by: jiam912
2 Replies
Tangram::Type::Dump::Any(3pm)				User Contributed Perl Documentation			     Tangram::Type::Dump::Any(3pm)

NAME
Tangram::Type::Dump::Any - Intuitive DataBase InterFace SYNOPSIS
# ... in a nearby Tangram::Schema structure ... SomeClass => { fields => { idbif => { -options => { dumper => 'Data::Dumper', }, some_field => undef, some_property => undef, some_attribute => undef, each_one => undef, gets => undef, saved => undef, }, string => { cheese => undef, }, }, }; DESCRIPTION
The idbif mapping type collates multiple data members into a single perl_dump (see Tangram::Type::Dump::Perl), storable (see Tan- gram::Type::Dump::Storable) or yaml (see Tangram::Type::Dump::YAML) column. For instance, with the schema definition in the example, all the columns in the example would be serialised via Data::Dumper. If you stored an object like this: $cheese = bless { cheese => "gouda", gets => 6, each_one => 9 }, "SomeClass"; You would see something in your database similar to: /^'--v------v--------v----------------------------'^ | id | type | cheese | idbif | >----o------o--------o------------------------------< | 1 | 42 | gouda | { gets => 6, each_one => 9 } | \_,--^------^--------^----------------------------._/ (note: the actual output from your SQL Database client may differ from the above) So, if you're the sort of person who likes to set their attributes with accessors, but doesn't like the overhead this places on the RDBMS... then this may help. Note: the real benefits of this mapping type are for when you're storing more complex data structures than "6" and "9" :-). You may prefer to use the default dumping type, which is storable. LINKS TO OTHER OBJECTS If Tangram encounters another object which is already in storage (ie, has been inserted via "$storage->insert($foo)"), then it will store a "Memento". This memento includes the object ID, which is sensitive to schema changes (the ordering of classes in the schema). If the class implements a "px_freeze" and "px_thaw" function, then there will be a "Memento" that includes the class name of the object, and the data that was returned by the class' "px_freeze" method. To be reconstituted, it is called as: SomeClass->px_thaw(@data) See Tangram::Type::Dump for more details on the complicity API. Please set RETVAL to be the thawed object. (that is, return a single scalar). BUT, I REALLY, REALLY HATE SCHEMAS! However, maybe you are one of those folk who don't like to declare their attributes, instead peppering hashes willy nilly, then there is another option. Instead of explicitly listing the fields you want, if you don't specify any fields at all, then it means save ALL remaining fields into the column. For convenience, "-poof" is provided as a synonym for "-options", so you can write: { fields => { idbif => { -poof => # There goes another one! { }, } }, } [ You see, Tangram::Type::Dump::Any isn't actually an intuitive DB interface. No, an intuitive DB interface is a user interface component, and that title is reserved for Visual Tangram. VT expects to pick up the title with any luck by the end of the 21st century^W RSN! I Don't Believe In Fairies is actually what it stands for. It's a completely arbitrary name; chosen for no reason at all, and certainly not anything to do with Pixie. ] perl v5.8.8 2006-03-29 Tangram::Type::Dump::Any(3pm)
All times are GMT -4. The time now is 10:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy