10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Need assistance in changing prompt .
Trying to change prompt in csh,tcsh shell . Below are the commands i tried in .cshrc and sourcing this files.
set prompt = "$user@`uname -n` : ${cwd}> "
#above commands works for username and hostname but cwd doesnt change
directories
set... (16 Replies)
Discussion started by: ajayram_arya
16 Replies
2. Shell Programming and Scripting
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
3. Shell Programming and Scripting
I want to type only the filename of a gcc source that has ".syn" as an extension and copy it, changing the extension to ".c" so it can be compiled.
I do it as follows:
if (-e $1.syn) then
/bin/cp $1.syn $1.c
endif
This works fine, but if I want to repeat the compilation by... (1 Reply)
Discussion started by: ygmwayne
1 Replies
4. Ubuntu
Hi,
i am a beginner in ubuntu. my default shell is bash. everytime i try to change the shell with command "csh", i get a message (probably an error message). after i get into c-shell, when i try to execute a c shellscript, then it showed the same message. any idea about what is this about or any... (1 Reply)
Discussion started by: Avinash Nayak
1 Replies
5. Shell Programming and Scripting
How can I change a string contained in a variable to upper case using csh ???
---------- Post updated at 08:39 AM ---------- Previous update was at 08:29 AM ----------
I think I've got it, using tr has solved the problem
set opt = ` echo $opt | tr "" "" ` (1 Reply)
Discussion started by: kristinu
1 Replies
6. Shell Programming and Scripting
Hi,
I have the files like in a directory.
filerefcellhg1.txt
filerefcellhg2.txt
filerefcellhg3.txt
filerefcellhg4.txt
filerefcellhg5.txt
filerefcellhg6.txt
filedonotchange.txt
filedonot
Desired output:
filerefhg1.txt
filereflhg2.txt
filerefhg3.txt
filerefhg4.txt... (1 Reply)
Discussion started by: vasanth_vadalur
1 Replies
7. UNIX for Dummies Questions & Answers
Hi Everyone,
I have a body of code that I'd like to know how to convert to a csh file.
In Unix, under a directory, I wish to ls into each of its subdirectories:
In Unix prompt I type
foreach i(*)
foreach? ls $i
foreach? end
however, when I try to store this body of code in .csh:
... (2 Replies)
Discussion started by: tommms
2 Replies
8. Shell Programming and Scripting
I have an extraordinary problem with a csh script.....(feel free to berate the use of this but I'm modifying an existing bunch of them)
Anyway, I have a master csh script which in turn calls a second csh script. This second csh script is below. Within this second script are two compiled C++... (1 Reply)
Discussion started by: pollsizer
1 Replies
9. Shell Programming and Scripting
First and foremost, this is not a homework for your information. I'm just new to using c-shell programming and I just wanted to make my life easier @ work.
Say, the file contains the following:
ID FILE NO. SL VP
1 1 22 33
1 2 ... (3 Replies)
Discussion started by: ilak1008
3 Replies
10. UNIX for Dummies Questions & Answers
Hi
I have always used ksh in the past, but now am using csh. To zero a file using ksh, you simply > filename. What is the command to do the same using csh?
Thanks in advance. (3 Replies)
Discussion started by: jodie
3 Replies