Search Results

Search: Posts Made By: zubairom
8,357
Posted By zubairom
Thanks for your comments Don :) I actually...
Thanks for your comments Don :)

I actually do use SASWORK_LIST_BEFORE again. The script deletes the orphaned SAS work directories and afterwards it runs sdiff on SASWORK_LIST_BEFORE with...
8,357
Posted By zubairom
Actually you and Don are right.. single quotes...
Actually you and Don are right.. single quotes within double quotes are not causing any error.

I must have done somethign wrong the first time when I tested and got the error about not finding...
8,357
Posted By zubairom
Don, Please see below the complete do while...
Don,

Please see below the complete do while loop


SCRIPT_DIR=/u/sasp/scripts/purge_clean

SASWORK_LIST_SASWORK=$SCRIPT_DIR/saswork_list_saswork

SASWORK=$1

cd $SASWORK
ls -ltr |...
8,357
Posted By zubairom
:) Thanks Made in Germany and Carlos for your...
:) Thanks Made in Germany and Carlos for your input... Now I understand what Carlos meant... Yes echoing the $line works ... That was confusing me as why the why loop goes into the awk subshell...you...
8,357
Posted By zubairom
Actually the script I showed was only a part of a...
Actually the script I showed was only a part of a big script. In the main script I have another egrep filter to keep only the directories that match the pattern of SAS work directories, in the ls -l...
8,357
Posted By zubairom
Thanks
Thanks very much Don.

The script you gave did the job. I am not concerned about the blank spacees in dir/file names because in my final script I filter the ls -l output using egrep, to keep only...
8,357
Posted By zubairom
Reading ls -l output line by line awk the user name and su user to run commands
Using ksh on AIX what I am trying to do is to read the ls -l output from a file in a do while loop line by line. Extract the user name(3rd field) and the directory/file name(9th field) using awk and...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 11:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy