Search Results

Search: Posts Made By: GNMIKE
6,475
Posted By GNMIKE
Thanks
Thanks for your help.
6,475
Posted By GNMIKE
List large files
Hi
I need to list all files in the system:
1. Greater than specific size
2. All files sorted by size

How can I do that?

Thanks in advance.
1,909
Posted By GNMIKE
Works well - Thanks.
Works well - Thanks.
1,909
Posted By GNMIKE
Simple if
Hi,
I have a variable (x) that holds a file name - I need to write this:

if x matches the patern *ABC* or the pattern DEF*T then
action A
else
action B
fi

how to do that?

Also, how...
10,115
Posted By GNMIKE
This make sense, since the file was created on...
This make sense, since the file was created on shared directory - I assume that this is not an error.

Thanks much for all your help.
10,115
Posted By GNMIKE
What does this mean: couldn't get uname for uid 1005
When trying to use tar I got this msg - What does it mean?

couldn't get uname for uid 1005
23,105
Posted By GNMIKE
Got it, thanks.
Got it, thanks.
23,105
Posted By GNMIKE
tar - Selecting target dir
Hi,
1 - How to select files to tar from a dir (indir) to the tar command?

2 - How to select the target directory where the files in a tar file should go to - I know that by default, tar remembers...
13,130
Posted By GNMIKE
Great, thanks.
Great, thanks.
13,130
Posted By GNMIKE
Concurrent writing to file
Hi
I have a ksh that can have multiple instances running at the same time.

The script (each instance) uses the SAME log file to write to.

Should this cause a problem or is the ksh clever...
3,902
Posted By GNMIKE
Thanks for the explanation.
Thanks for the explanation.
10,106
Posted By GNMIKE
Actually this did not work on HP-UX However...
Actually this did not work on HP-UX
However replacing the -o with || works

[[ cond1 || cond2 ]]

why is ksh so strange???
10,106
Posted By GNMIKE
if test for empty and non-existing file
How to write this condition in ksh?

if myfile is empty or myfile does not exist
then
do action1
fi

is this OK?

if [[ -s "$myfile" ]] -o [[ -f "$myfile" ]] then
then
do action1...
3,902
Posted By GNMIKE
Very well - Thanks.
Very well - Thanks.
27,993
Posted By GNMIKE
Thanks for your help.
Thanks for your help.
27,993
Posted By GNMIKE
Cool! Does UTC value have any thing to do with...
Cool!
Does UTC value have any thing to do with the specific zone or GMT time difference?
3,902
Posted By GNMIKE
Simple grep - Not sure it makes sense!
I have 3 files in directory mydir named as follows, I run the sequence of commands shown below and I have questions at the result.
File names are:
ABC_GP0
ABC_GP0.ctl
ABC_GPX

Commands and...
27,993
Posted By GNMIKE
Yes I have tried your code. I get the same...
Yes I have tried your code.
I get the same result as yours.

However I was expecting to get OCT 31, 2001 15:31:08 - You see, this value appears in the documentation of a product we use and I have...
27,993
Posted By GNMIKE
Very good, thanks for your help - I am confused...
Very good, thanks for your help - I am confused as whay there is a difference. I am not working in US time zone but I think this shoud not mater - Is there any thing that my UNIX system has to...
7,029
Posted By GNMIKE
Hi, As far as I know any unix command returns a...
Hi,
As far as I know any unix command returns a return code. Depending on the shell you use the check may slightly differ.

If you are using ksh - The following should work

....your command...
27,993
Posted By GNMIKE
Convert UTC time to Date
Hi,
I need to convert a number representing time in UTC seconds to a date. Ex:
3BE0082C --> Oct 31 2001 15:31:08

I have tried the following perl command but it gives a different answer?
$ perl...
5,244
Posted By GNMIKE
OOPS...I must appologize, I can't seem to repeat...
OOPS...I must appologize, I can't seem to repeat the problem to get the error message!

I remember when I attempted it, it gave me an error like "...too many parameters..."

Sorry for the inconv....
5,244
Posted By GNMIKE
ls and wild card in cp - Should be simple!
I am trying to cp files that have F0 as prefix in their name in path p1/p2 to path p3/p4

this command does not work - Why? (I am using HP/UX)

cp p1/p2/F0* p3/p4

thanks.
2,730
Posted By GNMIKE
How to remove files with zero lenght
How to remove files with zero lenght with one or more commands from the same directory?

Thanks.
8,111
Posted By GNMIKE
Got it, thanks.
Got it, thanks.
Showing results 1 to 25 of 45

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