Advertisement

635 organizations, including eBay, Ericsson and Lockheed Martin, now work smarter with Corporate Accounts. Save up to 42%

 

Welcome! If you have any general questions about Experts Exchange, feel free to ask me.

 
Time Tested csh / tcsh Solutions: 1 - 21 of 21
  • 1
 
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...
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 ...
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 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 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 don't know how to test the variable y whether or not containing something. Please see code below.
I'm looking for a Unix C-shell script example that tests Oracle SQL Loader response code (error/failure).
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...
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...
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 ...
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...
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 '....
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...
I want to stop my internet connection when the bandwidth limit is reached. Here is my script (which obviously doesn't work). The script should ask for the limit, then check every second th...
Hi, I'm new to shell scripting... The following code works fine:         mycomp 61% foreach i ( 1 2 3 4 5 )         foreach? if ($i > 2) echo $i.txt         foreach? end         3.txt ...
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 ...
Good morning.  How can I configure my Linux server in a way that when any user logs in, they will be forced to use the tcsh shell. Thank you! Dennis
 
  • 1