Search Results

Search: Posts Made By: tonydsam
10,863
Posted By tonydsam
Thanks, how would I go about putting the found...
Thanks, how would I go about putting the found files and not found files into other variables which I could then echo out?
10,863
Posted By tonydsam
Thanks, how would I go about putting the found...
Thanks, how would I go about putting the found files and not found files into other variables which I could then echo out?
10,863
Posted By tonydsam
Check file exists from a shellscript
Hi,

I have a list of files that I want to check to see if they exist and then count how many of these files exist, I also want to do the same for the files that arent found.

I have done this...
7,083
Posted By tonydsam
Thanks everyone. I have got around the problem by...
Thanks everyone. I have got around the problem by changing the directory permissions so that any users can create files and then I have logged in as the other user and created the files. Thanks for...
7,083
Posted By tonydsam
Chown problem
I am trying to change ownership of a file that I own by using the following command:

chown norfoklm norfolk


norfoklm is the user I am trying to change it to and norfolk is the name of the...
1,504
Posted By tonydsam
Its ok I rememebr the su command now.
Its ok I rememebr the su command now.
1,504
Posted By tonydsam
Search not working
Simple query but the search function on the forum doesnt seem to be working for me. Is the any way to change to a differnt user on the same Unix box without having to log out?
3,949
Posted By tonydsam
Thanks. This does also seem to work.
Thanks. This does also seem to work.
25,777
Posted By tonydsam
I have run uname -a and I get: dgux...
I have run uname -a and I get:

dgux hs-it-a5-59 R4.11MU06 generic AViiON mc88110
25,777
Posted By tonydsam
Thanks Jim.I dont know what grep doesnt have the...
Thanks Jim.I dont know what grep doesnt have the -q option, all I know is that I get this error when I try to use it:

UX:grep: ERROR: Illegal option -- q
UX:grep: TO FIX: Usage: grep -hblcnsvi...
25,777
Posted By tonydsam
Thank you, this does seem to work but I get an...
Thank you, this does seem to work but I get an error with the -q option so I have changed it to -l, what should it do though ?
25,777
Posted By tonydsam
This doesnt seem to be working as it is still...
This doesnt seem to be working as it is still picking up the files with Process Complete in them. I have tried moving the ! around but still no joy. 'Process Complete' should only be on the last line...
3,949
Posted By tonydsam
Thanks, I have decided to try a different way...
Thanks, I have decided to try a different way though. The way I am trying is:

find ./logs -size +1c -exec grep -l 'Process Complete' {} \; -exec ls -l {} \; > $TOD

I am then checking the...
25,777
Posted By tonydsam
Search for Files that DONT contain a string
How do I search for files that dont contain a certain string? I am currently trying

find ./logs -size +1c -exec grep -l 'Process Complete' {} \; -exec ls -l {} \; >
$TOD

Which gives me files...
3,949
Posted By tonydsam
I keep getting the error with pressy script: ...
I keep getting the error with pressy script:

UX:ksh: ERROR: test: argument expected

Any ideas?
3,949
Posted By tonydsam
Thanks guys, i will try and let you know how I...
Thanks guys, i will try and let you know how I get on.
3,949
Posted By tonydsam
yesterdays files
I am new to UNIX and I am trying to write a shell script. I want to be able to list all files that were created with yesterdays dates (APR 29 as an example) that are not 0 file size.Then in those...
Showing results 1 to 17 of 17

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