Sponsored Content
Full Discussion: Unix Path Options
Top Forums UNIX for Dummies Questions & Answers Unix Path Options Post 10708 by Shakey21 on Monday 19th of November 2001 06:26:35 PM
Old 11-19-2001
Thanks very much!

That works extremely well, a short extract from the code

Code:

ENVIRON=`pwd`

find ${ENVIRON} -name "*.ps" -user $user | while read psfile
do
   pdffile=`echo $psfile | sed s/.ps$//g`
   filename=`basename $psfile | sed s/.ps$//g`
   directory=`dirname $psfile`
   if [ ! -d ${directory}/PDFs ] ; then
      mkdir ${directory}/PDFs
      chmod 775 ${directory}/PDFs
   fi     
   if [ -f ${directory}/*.pdf.gz ] ; then
      mv ${directory}/*.pdf.gz ${directory}/PDFs/
   fi   
   if [ -f ${directory}/*.pdf ] ; then
      mv ${directory}/*.pdf ${directory}/PDFs/
   fi
   if [ -f ${directory}/PDFs/${filename}*.pdf ] ; then
      gzip -f ${directory}/PDFs/${filename}*.pdf
   fi

Shakey21
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

missing Path(in UNIX) when i launch a job on to unix machine using windows SSh

hi i want run an unix application from a windows program/application.i am using SSH(command line version)to log on to a unix machine from windows. the application has to read a configuration file inorder to run. the configuration file .CFG is in bin in my home directory. but the application... (1 Reply)
Discussion started by: megastar
1 Replies

2. Shell Programming and Scripting

path options clarification

hi guys.. i want to know as what these options -O and -n stand for, in the following: HOSTNM=$(/u/bin/wmuname -O) HOSTNM=$(/usr/bin/uname -n) can u please help me! awaiting your reply... (2 Replies)
Discussion started by: pravfraz
2 Replies

3. UNIX for Dummies Questions & Answers

Unix : About options of clear command ?

Hello everyone, My question is quite simple, even if I didn't find an answer. I would want a command (maybe clear with some options ?) that can do the following : clear completely the console, as it is when we start a console for the first time. My problem is that I sometimes display a lot... (5 Replies)
Discussion started by: Ben31400
5 Replies

4. UNIX for Dummies Questions & Answers

What are the career options in unix apart from unix system administration?

What are the career options in unix apart from unix system administration? (2 Replies)
Discussion started by: thulasidharan2k
2 Replies

5. UNIX for Dummies Questions & Answers

UNIX find command - using multiple -name options

Hi all, What am trying do is search for a directory that is owned by cm that only exists in a path that has a particular directory ex: what I'm using now is find . -user cm -name '*.rel' -type d -exec ls -dl {} \; This is giving me stuff like this ./../../foo1/../../*.rel... (2 Replies)
Discussion started by: jtmed
2 Replies

6. UNIX for Dummies Questions & Answers

UNIX sql options

New to the unix experience and sure love it. I do all my big sql queries using unix sas, it's great, can't complain. Also have isql on the box to work with Sybase db's if need be. Just wondering if there's any large-amt-of-data-folks round here that might suggest some other sql/data tools... (2 Replies)
Discussion started by: sas
2 Replies

7. UNIX for Dummies Questions & Answers

UNIX ls options

Hi Guys I'm new to the forums and Unix. I have my first assignment for school and i'm stuck on question 1 spent close to 4 hours on it :(. (doesn't look good). I looked the the online documentation of ls but don't really understand it yet. I need to find files whose names that are of length... (1 Reply)
Discussion started by: Stephvai
1 Replies

8. Shell Programming and Scripting

UNIX Date function with -d options

Hi , I couldn't understand how this program works. Can somebody please explain it to me. DT=`date -d "1 day"` # This part I understand echo ${DT/ */} # How this works echo ${DT/* /} (2 Replies)
Discussion started by: LoneRanger
2 Replies

9. UNIX and Linux Applications

UNIX equivalent of windows terminal server options?

I want to replace Windows terminal server mostly due to cost reasons license cost for 2100 users goes out of roof. The end-user is all windows but I want a jump server that is UNIX based , I have some experience with VNC but I don't want options exists in UNIX to run a terminal services for 2100... (10 Replies)
Discussion started by: lazerz
10 Replies
create directory(1m)													      create directory(1m)

NAME
create directory - Creates a directory SYNOPSIS
cdscp create directory directory-name [clearinghouse clearinghouse-name] ARGUMENTS
The full name of the directory The name of the clearinghouse in which you create the directory. DESCRIPTION
The create directory command creates a directory with the name that you specify. If you do not specify a clearinghouse, CDS creates the master replica of the directory in the same clearinghouse as the new directory's parent directory. Privilege Required You must have the following permissions in order to create a directory: read and insert permission to the parent directory; write permis- sion to the clearinghouse in which the master replica of the new directory is to be stored. In addition, the server principal must have read and insert permission to the parent directory. NOTES
To ensure that all replicas are consistent, perform an immediate skulk of the parent directory after issuing this command. This command is replaced at Revision 1.1 by the dcecp command and may not be provided in future releases of DCE. EXAMPLE
The following command creates a directory named /.:/sales. cdscp> create directory /.:/sales RELATED INFORMATION
Commands: delete directory(1m), list directory(1m), set directory(1m), set directory to skulk(1m), show directory(1m) create directory(1m)
All times are GMT -4. The time now is 07:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy