Hi,
In a Unix script (csh) I'm wanting to create an archive script.
For a certain directory I want to tar and zip all files over 31 days old.
The naming convention I want for my res...
how can I split string in tcsh ?
In Perl, we have "split /token/,$string"
Is there something ismilar in tcsh script ? If not, what is the alternative.
Thanks in advance
I'm looking for a Unix C-shell script example that tests Oracle SQL Loader response code (error/failure).
Hi experts,
I need a quick tcsh script that does the following :
1) ls the contents of a specified directory non-recursively
2) Store only the filenames from that directory to an array
...
I am using Red Hat Linux ES4.0 update 5. I need to modify the login prompt for a non-root user so that it displays the current working directory all the time. The users default shell is csh an...
I have this code in my tcsh script:
set i=(pgrep startlotj | wc -l)
if ( "$i" > "1" ) exit 0
It's purpose is to kill the new instance of startlotj if there is already one running. However...
I connect to a remote vpn using the cisco vpn client on linux. I run the following code in my .login file under tcsh.
if ("`tty`" != "/dev/console") then
set term = vt100
echo term...
hello =)
in need of a csh (or bash if need be) script that can
1. find the newest file in a directory
2. check the age of the file
3. if older than X minutes send both an email and sms ...
I'm working with a csh script that issues an ftp command, and I came across these lines:
How is this ftp command working without an identified host name? It's only using a single dollar sig...
in a tcsh script, I created a new file in a different directory. in the same script in the later part, I tried to open the file I just created, it returned "cannot open...."
I've checked ev...
hello,
can someone help figure out what's wrong with these statements? I'm trying to compare correct format of phone numbers and it seems to not detecting the "-"
set phnum = ""
set t...
In a Unix csh script I need to use an asterisk (*) in a variable.
For example :
#!/bin/csh -f
set match = "GBP"
echo $match
set match_b = "*500*"
echo $match_b
this results i...
I need to read one line at a time, from each of two files, that are given as input
I want to continue until the end of the files. Each of file
one and two has the same number of lines:
r...
How do I find all the file in a file system with that have the same INODE ?
I want a list of all the files that have the same INODE for all INODES in a
directory (and the sub-directories) ...
Hi,
i want to write a shell script which should delete files from a folder which are 6 months older.
In this folder there might be other files which are 6 months older so i want to delete '....
Using CShell, is there a way to change the directory so that it remains changed after the script finishes? For example if pwd is /a/b/c and I run a script that contains cd /a/b/x/y, when the ...
I'm using csh on fc3. I'd like to use find command and exclude some files under specified directory. I put the exclude files list in a text file, and read it from a csh script to combine the ...