Search Results

Search: Posts Made By: ibad_urs
990
Posted By ibad_urs
If you don't want to provide the password (i.e....
If you don't want to provide the password (i.e. don't want to do secure copy) then use below command


cp /net/sourcePath<space>/destPath


Thanks,
Ibadh.
2,875
Posted By ibad_urs
Here is the #!/bin/bash keep_above=1 ...
Here is the


#!/bin/bash
keep_above=1
keep_below=1
# cleanup - rename selected files and remove others
# Usage: cleanup file_to_rename...
#
# Select a list of all files in the current...
1,068
Posted By ibad_urs
Fetch the last two days directory names and rename them
Hi All,

I have below directory structure and from these directories, I would like to fetch the last two days list of directories and append a '0' (zero) to those directories.


bash-4.1$ ls...
2,875
Posted By ibad_urs
Hi Don Cragun, Please find the console...
Hi Don Cragun,

Please find the console output (syntax errors as I have not put the code in right way ), when I tried to rename the directories that I am keeping (keep_above1 and keep_below1)....
2,875
Posted By ibad_urs
Thanks a ton Don Cragun and the scripting is...
Thanks a ton Don Cragun and the scripting is working fine.

---------- Post updated 09-24-14 at 02:07 PM ---------- Previous update was 09-23-14 at 07:23 PM ----------

Hi Don Cragun,

One more...
2,875
Posted By ibad_urs
Don Cragun, Thanks for the help, but your...
Don Cragun,

Thanks for the help, but your code is removing all directories :(
Please find the output and FYI, I am unsing Linux 6, please advise.
bash-4.1$ ls -lrt
total 64
-rw-r--r-- 1...
2,875
Posted By ibad_urs
Hi Singh, Thanks alot for the help. what...
Hi Singh,

Thanks alot for the help.
what if the requirement is like below please?

Say from below list:
/scratch/builds/snapshotBuilds/0.0.0.0
drwxr-xr-x+ tested-571
drwxr-xr-x+ tested-576...
2,875
Posted By ibad_urs
RE: Shell script to delete specify directory
Thank you Singh,

Slight modification in your command:

find . -type d | awk '!/\.\/tested*/ && !/\.\/111/' | xargs -p rm -rf:


This is working but a small issue is the above command is...
2,875
Posted By ibad_urs
Shell script to delete specify directory
I have the following directories under "0.0.0.0"

/scratch/builds/snapshotBuilds/0.0.0.0
drwxr-xr-x+ tested-571
drwxr-xr-x+ tested-576
drwxr-xr-x+ tested-597
drwxr-xr-x+ 600
drwxr-xr-x+ ...
Showing results 1 to 9 of 9

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