Search Results

Search: Posts Made By: indeed_1
5,733
Posted By indeed_1
comm -23 <(find dir1 -type f -exec bash -c...
comm -23 <(find dir1 -type f -exec bash -c 'basename "${0%.*}"' {} \; | sort) <(find dir2 -type f -exec bash -c 'basename "${0%.*}"' {} \; | sort)
test1

Follow below post and work like charm:...
5,733
Posted By indeed_1
How does it work recursive? -r ? There are...
How does it work recursive? -r ? There are some different directions into the source and destination that need to check.
5,733
Posted By indeed_1
diff -r /opt/source /opt/destination
diff -r /opt/source /opt/destination
5,733
Posted By indeed_1
Compare two directory and find differents
Hi have two directory with below name in /opt

1-Source
2-Destination

In Source directory there is a lot's of files, with extensions (doc, docx , ppt, xls,...).
In Destination...
8,198
Posted By indeed_1
Work like charm! This is exactly what I want. ...
Work like charm! This is exactly what I want.

Thank you so much brother :)
8,198
Posted By indeed_1
unfortunately on remote location there are some...
unfortunately on remote location there are some directories that use 6 digit number!
when I ran script it copy them instead of 8 digit directories.


e.g: remote directory content like this:

...
8,198
Posted By indeed_1
I don't know how to say thank you for time that...
I don't know how to say thank you for time that you spend on this post. :)
8,198
Posted By indeed_1
ok little confused, would you please write...
ok little confused, would you please write complete script you mean? like what I wrote in previous reply?


Thanks,
8,198
Posted By indeed_1
Here is my script, and I try every command you...
Here is my script, and I try every command you mention but it always copy all directories not content of latest with 8 digit number pattern!



#!/bin/bash
DATE=`date +%Y%m%d -d "1 days ago"`
...
8,198
Posted By indeed_1
Sorry first time I reply and didn't received any...
Sorry first time I reply and didn't received any answer I thought I should quote till notify you :))

Main task is Both, last directory by number AND by creation time. If both condition were true...
8,198
Posted By indeed_1
Thank you for your reply but it give directory...
Thank you for your reply but it give directory name not content of it.

Currently Output: 13991013

Expected output:
customers1
customers2
customers3
...

FYI: as I mention before...
8,198
Posted By indeed_1
What about any other 8 digit? It change and...
What about any other 8 digit? It change and dynamic each day with same patter?
8,198
Posted By indeed_1
What about any other 8 digit? It change and...
What about any other 8 digit? It change and dynamic each day with same patter?
8,198
Posted By indeed_1
Lftp mirror pattern
hi
I have lftp server directory like this:
13991010
13991011
13991012
13991013
Fabric
Test
Test2


I want to mirror only content of latest directory with this pattern 13991013 (8digit) ...
3,296
Posted By indeed_1
Script that verify output after make
Hi

I write below script to show if expected file exist in /etc/library/ , print success else failed. But it will print full path I just need to print module name in output. And if it possible...
2,603
Posted By indeed_1
Sorry about confusing you 😄 After these issues...
Sorry about confusing you 😄
After these issues I try to export this part in new and separate script, and just cleanup destinations with rm command and then run if(s)


#!/bin/bash
rm -rf...
2,603
Posted By indeed_1
Before cp I cleanup /home/user , and I make sure...
Before cp I cleanup /home/user , and I make sure destination is empty after that run script , do you have any other recommendation?
2,603
Posted By indeed_1
Exactly, I get parameter with correct order , but...
Exactly, I get parameter with correct order , but seems if (s) had problems!
Do you have idea about that part of code?
2,603
Posted By indeed_1
Condition in bash script
I want get [4 file name string] from user and pass these parameters to bash script. script should copy files in user home directory.

FYI: each file might be exist or not, might be one of them...
6,145
Posted By indeed_1
You right i’m just testing with root user after...
You right i’m just testing with root user after that run script with limited user.
Actually i’m not sure cgi script is correct or not!
Do you know what is the sample of correct cgi script that run...
1,785
Posted By indeed_1
Count Segmentation fault and write to the file
Hi everyone

Need to get version of npm application that have several output like this:

root: nmp -version
10

root: nmp -version
10

root: nmp-new -version
3.1

root: nmp-old -version...
6,145
Posted By indeed_1
Webserver and cgi run with root user.
Webserver and cgi run with root user.
6,145
Posted By indeed_1
Run with root user, and give execution permission...
Run with root user, and give execution permission to script. But problem stiil exist.
6,145
Posted By indeed_1
Run command through html+cgi in bash
Hi everyone,
I want to kill process through the web, so I create html page with single bottom that run kill command in shell script with CGI.


Here is html code:
<td><form METHOD="GET"...
4,674
Posted By indeed_1
/home/user1/app -bind /home/user1/config1 ...
/home/user1/app -bind /home/user1/config1
/usr/app -bind /home/user5/config2
/tool/app -bind /opt/config3

------ Post updated at 12:13 PM ------



change them as you mention but no...
Showing results 1 to 25 of 43

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