10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I have a text file (say, declarevars.txt) that contains multiple lines that are essentially meant to be variable declarations:
set arr1 = (var1a var1b var1c)
set arr2 = (var2a var2b var2c)
.
.
.
I want to be able to read this text file within a csh (sorry) script and have that... (2 Replies)
Discussion started by: arjaydj
2 Replies
2. Shell Programming and Scripting
Hi,
I am looking for a shell script which move .300 extension files from /home/sofia/ to /home/sofia/test and sends me an email with the list of files moved like this :-
The following files has been moved from /home/sofia/ to /home/sofia/test
1. alpha.300
2. beta.300
Email only if the... (4 Replies)
Discussion started by: sofia8679
4 Replies
3. Shell Programming and Scripting
I very new to C Shell. I am trying to do is read from Command line.
Find the if the file is zip, .txt, symbloic link,pipe, unknow (if file is not zip, txt, sy....)
here is what I what got so far. I am very stuck atm Please help me out :
If the file is symblooc link what file is link to
... (12 Replies)
Discussion started by: madbull41
12 Replies
4. Shell Programming and Scripting
I have a directory that contains several files, out of which some files are have an extra extension for example
file1.new.new.new
file2.new.new.new
file3.new.new.new
file4.new.new.new
i want to write a shell script that rename all such file with only single extension like
file1.new... (7 Replies)
Discussion started by: mukulverma2408
7 Replies
5. 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
6. Shell Programming and Scripting
Hi,
I have a csh script. I want to set some variables and execute some command from a file in that script.
abc.csh
echo "primary script"
b
setenv XXX ddd
set XX
make abc
I want to execute the commands of "b" file from abc.csh. How can i do that.
Please view this link: How to use... (3 Replies)
Discussion started by: vdhingra123
3 Replies
7. Shell Programming and Scripting
Hi,
First off I'm pretty new to scripting so please be gentle.
I am looking for some help with a script that will move all files with a certain extension into a folder within their current location.
Just for clarity I have all my photos organised in directories such as:
... (4 Replies)
Discussion started by: guinch
4 Replies
8. UNIX for Dummies Questions & Answers
I searched the forum, but there was different type of rename.
Hello.
I have files in folder.
Like:
xxxxxxxx1.html
or
xxxxxxxx2.txt
or
xxxxxxxx3.tar.gz
and how to rename or change file extension case to
xxxxxxxx1.htm
or
xxxxxxx2.TXT
or (5 Replies)
Discussion started by: Sheldon
5 Replies
9. 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
10. Shell Programming and Scripting
Hey,
I'm having a problem finding out if a directory holds any files with a certain file extension, for example .txt.
I have tried: if (! -e "*.txt")
and I've tried: set FILES=`ls *`
echo "Found $FILES"
foreach FILE ($FILES)
if($FILE == "*.txt")
And neither of... (2 Replies)
Discussion started by: amnesiaiom
2 Replies