Search Results

Search: Posts Made By: royinfo.alain
1,432
Posted By royinfo.alain
Thanks for the Info, I will use yours.
Thanks for the Info,

I will use yours.
1,432
Posted By royinfo.alain
Thanks to all.. I used the code below and...
Thanks to all..

I used the code below and works fine & fast.

set +x
FILE_TMP=""
FILES=""
find *.sf -type f -mtime -$nb_days | sed -e "s/.sf/.sfd/g" | while read FileName
do
...
1,432
Posted By royinfo.alain
I'm working on an HP unix !! I don't know...
I'm working on an HP unix !!
I don't know which shell is it .. maybe bourne..

Do you have an idea how I can combine the FOR and mtime
or mtime it can only use with the command find ?

...
1,432
Posted By royinfo.alain
Thanks Corona688, I need to select only...
Thanks Corona688,

I need to select only files modified since last x days, this is why in the first post you can see -mtime -nbdays on my find command.

And Yes .sf are files.

I don't...
1,432
Posted By royinfo.alain
Hello Stomp, the -T is not supported. Also the...
Hello Stomp, the -T is not supported. Also the file that I need to backup is not the one that I found.. First I need to find files with extension .sf and replace the .sf with .sfd and if this one...
1,432
Posted By royinfo.alain
Tar command generation with Find
Hello,

I'm trying to generate a TAR command and fill it with the result of a Find command. What I did is not elegant and I'm sure that it can be in a different way to be faster.

I need to...
1,708
Posted By royinfo.alain
Many thank to all of you, I used both and run...
Many thank to all of you, I used both and run very well & fast..

set +x
find * -type f -mtime -365 | sed 's/[.][^.]*$//; s/$/*/' | sort -u > $MAITUT/FILES_TO_DELETE


Please use CODE tags...
1,708
Posted By royinfo.alain
Find command + replace the extension (.xxx) by *
Hello,

I'm on HP Unix and in a Job, I tried to extract all files from a folder, and replace the extension (.xxxx) by '*' , remove duplicates and move the result in a file..

Example :
Folder...
Forum: HP-UX 08-08-2016
9,839
Posted By royinfo.alain
Thank you so much everyone. I used the...
Thank you so much everyone.

I used the command below and works fine.

code :
find * -type f -mtime -$nb_days | cpio -o | gzip >$MAITUT/BCK_DATA.cpio.gz

to extract :
gzip -dc...
Forum: HP-UX 08-08-2016
9,839
Posted By royinfo.alain
I just tried the new command above and got the...
I just tried the new command above and got the error :

find * -type f -mtime -100 | cpio -o --format=crc | gzip >file.cpio.gz

cpio: illegal option -- -
cpio: illegal option -- =
Usage:...
Forum: HP-UX 08-08-2016
9,839
Posted By royinfo.alain
First, Thanks to all to take times to answer...
First,
Thanks to all to take times to answer me.

I tried all commands that I received and only one works properly for me. (at least, a GZIP file is created.) I will verify the contains.

Below...
Forum: HP-UX 08-05-2016
9,839
Posted By royinfo.alain
I tried with the f and have no errors.. ...
I tried with the f and have no errors..

the command that I used :find * -type f -mtime -365 -print | xargs tar -cvf | gzip > $MAITUT/BCK_DATA.tar.gzMaybe I've not understand where to put the...
Forum: HP-UX 08-05-2016
9,839
Posted By royinfo.alain
Thanks, I tries and gave me the error : ...
Thanks,

I tries and gave me the error :

tar: cannot open /dev/rmt/0m
Forum: HP-UX 08-05-2016
9,839
Posted By royinfo.alain
thank you for your answer. I'm a HP MPE...
thank you for your answer.

I'm a HP MPE guy's.. I'm just starting with Unix. I'm not really understand when you said pipe in stdout.

Is it possible to have an example ?

Merci
Forum: HP-UX 08-05-2016
9,839
Posted By royinfo.alain
Hpux find tar gzip
Hello,

I will like to execute a find, tar & gzip in one command.

find * -type f -mtime -$nb_days -print | xargs tar -cvf $MAITUT/BCK_DATA.tar
gzip $MAITUT/BCK_DATA.tar.gz


The...
1,544
Posted By royinfo.alain
Need help ASAP - FIND - TAR - GZIP
Hi,

I need to combined in 1 line the execution below :

find * -type f -mtime -$nb_days -print | xargs tar -cvf $MAITUT/BCK_DATA.tar

gzip $MAITUT/BCK_DATA.tar.gz

The fact that...
Showing results 1 to 16 of 16

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