03-12-2007
Hi Anbu
i dont know but your seems to just display file not found all the time...
let me make myself more clear...
1st folder = /space/dwland/all_files/
Now,this folder has files like xxx.<file_name>,bbb.<file_name> and so on
2nd folder = /space/dwland/prodland/
now this folde has files like xxx.<file_name>.<date>,bbb.<file_name>.<date>, and so on..
I want to compare 1st folder with 2nd folder(-minus the date portion,for the file_names should be compared) and display the files which are not present in folder 2 but present in folder 1
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I am not sure how to call a perl script from a tcsh shell. do i need to set any environment variables? your help is appreciated
Thanks (1 Reply)
Discussion started by: megastar
1 Replies
2. Shell Programming and Scripting
I have an export utility that exports documents from the native file to text. This is the way I would run it from the command line:
expage "file" > "file.txt
I am trying to loop through all the documents in the directory and expage them, here is the code:
#!/usr/bin/env tcsh
foreach file... (8 Replies)
Discussion started by: Fred Goldman
8 Replies
3. Programming
Hello Freinds
I have just started off with Unix (TCSH) although I have a pretty sound background with C-programming. Kindly convey any error in foll script.
#include<stdio.h>
#include<math.h>
#define PI 3.142857
main ()
{
float r, A;
printf("Enter the value of radius: ");
scanf(" %f... (12 Replies)
Discussion started by: mahendrakamath
12 Replies
4. Shell Programming and Scripting
Hello
I have Linux Debian & tcsh shell. My mini script not run :(.
Startup script displays a message:
user@host:dir% ./test
if: Badly formed number.
script:
#!/bin/tcsh -f
#script check size files systems
set x = `df -h /usr | tail -n1 | awk '{ print( $5 ); }'`
set y = 60%
if ($x... (5 Replies)
Discussion started by: moskovets
5 Replies
5. Shell Programming and Scripting
Hi, I'm trying to break a large csv file into smaller files and use unique values for the file names. The shell script i'm using is tcsh and i'm after a gawk one-liner to get the desired outcome. To keep things simple I have the following example with the desired output.
fruitlist.csv
apples... (6 Replies)
Discussion started by: theflamingmoe
6 Replies
6. Shell Programming and Scripting
I am a beginner (Just 2 days old:o ), i will really appreciate if you can solve my silly queries as below:
Lets say i write a script like this
#!/bin/bsh
clear
#to read name from keyboard
echo "your name please.."
read fname
echo "you just entered $fname"
exit 0
My environment is... (2 Replies)
Discussion started by: animesharma
2 Replies
7. Shell Programming and Scripting
Hi All,
I have made a file file usercreate.sh & it has to run in tcsh env & needs some path to be set.
my script is as below.
##########################
#!/bin/csh
setenv PATH "/usr/lib/java/class"
setenv LD_LIBRARAY_PATH
###########################
but when i am ruuning my script... (1 Reply)
Discussion started by: ajaincv
1 Replies
8. Shell Programming and Scripting
Hi All,
I wrote a tcsh script, but being a beginner it took me lots of efforts and on top of that I am still struggling with little modifications here and there.
kindly have a loop.
Line1 : I want it to run maximum of "Max" Which I am providing outside loop. So how the "for" should be... (10 Replies)
Discussion started by: nrjrasaxena
10 Replies
9. Shell Programming and Scripting
I cant figure out how the complete function works in tcsh.
1. I whould like it to complete after writing my_program.py with either start or stop.
I have tried to do something like this in .cshrc.user:
complete my_program.py \
'c/start/' \
'c/stop/'
However i cant get it to... (1 Reply)
Discussion started by: mr_cad
1 Replies
10. Shell Programming and Scripting
Hi,
I have a shell script in tcsh to which I pass an argument, the length of which can vary. The possible values of the argument are the letters -c,s,i,q,a. and also a combination of these letters. (e.g: cs,si,ca,iq,qa,csq,acs,csia ..etc). The order of the letters does not matter.
My problem... (2 Replies)
Discussion started by: Vaisakh P
2 Replies
rmf(1) General Commands Manual rmf(1)
NAME
rmf - remove folder (only available within the message handling system, mh)
SYNOPSIS
rmf [+folder] [-help] [-[no]interactive]
OPTIONS
Prints a list of the valid options to this command. Asks for confirmation before deleting a folder. By default, rmf deletes a folder and
its messages without asking for confirmation. If you specify the -interactive option, rmf asks if you are sure before deleting the folder.
You are advised to use this option, since when rmf deletes a folder its contents are lost irretrievably.
DESCRIPTION
The rmf command removes all of the messages within the current folder, and then removes the folder itself. If there are any files within
the folder which are not part of MH, they are not removed, and an error message is displayed.
You can specify a folder other than the current folder by using the +folder argument. If you do not specify a folder, and rmf cannot find
the current folder,rmf asks you whether you want to delete +inbox instead.
If the current folder is removed, it makes +inbox current.
Note that the rmf command irreversibly deletes messages that do not have other links, so use it with caution.
If the folder being removed is a sub-folder, the parent folder becomes the new current folder, and rmf tells you that this has happened.
This provides an easy mechanism for selecting a set of messages, operating on the list, then removing the list and returning to the current
folder from which the list was extracted.
Using rmf to delete a read-only folder deletes the private sequence and current message information from the file, without affecting the
folder itself. If you have sub-folders within a folder, you must delete all the sub-folders before you can delete the folder itself.
PROFILE COMPONENTS
Path: To determine the user's Mail directory
EXAMPLES
This example shows how rmf asks for confirmation when the -interactive option is used: % rmf -interactive +test Remove folder "test"? y
FILES
The user profile.
SEE ALSO
rmm(1)
rmf(1)