10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
hi everyone
what is difference between "if ( -e Arch )" and "if ( -e ./Arch )" in csh shell?
Many Thanks
samad (1 Reply)
Discussion started by: abdossamad2003
1 Replies
2. Shell Programming and Scripting
Hi,
I have 2 .txt pads containing data.
I need a script which reads content of one .txt file, performs some operations and calculates a number which is stored in a variable.
Now , all the content of another .txt pad should be appended to first .txt pad at pre calculated nth line number.
... (4 Replies)
Discussion started by: Ravindra Swan
4 Replies
3. Shell Programming and Scripting
Hi,
I need to read a string with ; separated using loop one filed by one field and perform some operation. Can you please check and let me know how to print command parameterised.
key=phani;ravi;kiran
number_of_keys=`echo $key|awk '{print NF}' FS=';'`
for (( i = 1; i <= $number_of_keys;... (4 Replies)
Discussion started by: Ravindra Swan
4 Replies
4. Shell Programming and Scripting
Hello,
I am attempting to ssh to a server and run a set of commands on a remote set of servers. I am getting the following error below, I am thinking quotes may be the problem. This command works on the local machine in bash. Not when I ssh to a remote server. Basically the command should... (3 Replies)
Discussion started by: jaysunn
3 Replies
5. Shell Programming and Scripting
I am trying to execute a piped combination of shell commands inside a perl program.
However, it is not working as desired.
This is my program, i am trying to print only filenames from the output of ls -l
$ cat list_test
#!/usr/bin/perl -w
use strict;
my $count=0;
my @list=`ls -l|awk... (4 Replies)
Discussion started by: sam05121988
4 Replies
6. Shell Programming and Scripting
Hey,
New to the forum and I just had a few questions. I'm writing two scripts that "have" to be written in csh, a menu and a chmod toggle script. I'm having trouble with both of them.
For the menu, it works but when the user picks an option (lets say 4) it will go through all the options... (1 Reply)
Discussion started by: chrisH18
1 Replies
7. UNIX for Dummies Questions & Answers
Hi everyone,
I've been writing a script as an assignment which essentially does the exact same thing as the tree -d function (bash shell btw), except next to every directory name it gives a number which you can input into the same command in order to change the current working directory to the... (1 Reply)
Discussion started by: petey22uk
1 Replies
8. BSD
Hi,
I recently installed FreeBSD 6.0, and am now trying to run my newly created sh scripts, that I ftp'd over from my works Data General - Unix server, I thought they would at least sumwhat/part run, but I can'y even get my basic menu to run and don't know why, can anyone help me by throwing... (6 Replies)
Discussion started by: Gerry405
6 Replies
9. Shell Programming and Scripting
Hi everyone.
I am new to the forums and new to Unix, so please pardon my beginner "status".
In my company, we have a few C shell scripts, which we call BAT files (!). They all start with the usual "#/bin/csh" line to get it to run the .cshrc script which preloads the session with a lot of... (1 Reply)
Discussion started by: SpanishPassion
1 Replies
10. Shell Programming and Scripting
Hi. I have been trying to send mail using the mailx command. I also tryed to use the mail command.
The thing is that when I try to send the email, i receive automatically to my mailbox a DAEMON response sayng that the mailhost is unknown...
The syntax I am using is this:
$mailx -s "this... (2 Replies)
Discussion started by: ldrojasm
2 Replies