Search Results

Search: Posts Made By: gold2k8
1,574
Posted By gold2k8
It working perfectly fine. Can I know what that...
It working perfectly fine. Can I know what that AWK does please explain i have to brief my coworker
1,574
Posted By gold2k8
How to delete the duplicates using this?
How to delete the duplicates using this?
1,574
Posted By gold2k8
To Delete the duplicates using Part of File Name
I am using the below script to delete duplicate files but it is not working for directories with more than 10k files "Argument is too long" is getting for ls -t. Tried to replace ls -t with

find ....
1,358
Posted By gold2k8
Optimizing the Shell Script [Expert Advise Needed]
I have prepared a shell script to find the duplicates based on the part of filename and retain latest.

#!/bin/bash
if [ ! -d dup ]; then
mkdir -p dup
fi
NOW=$(date...
983
Posted By gold2k8
LS -T Output in find
I have prepared a script with ls -t to fetch latest file and compare with duplicates i use below

ls -t *xml |awk 'BEGIN{FS="_"}{if (++dup[$1] >= 2) print}'

However for large size folder ls...
2,257
Posted By gold2k8
Script for removing the Duplicate files except latest in filename series
I have a folder with series of filename patterns like the below.
./ARCZ00300_010117_1504690829222.xml
./ARCZ00300_010117_1507101655366.xml [latest]
./ARCZ00301_010117_1504691829478.xml...
2,257
Posted By gold2k8
To Find Duplicate files using latest in Linux
I have tried the following code and with that i couldnt achieve what i want.

#!/usr/bin/bash
find ./ -type f \( -iname "*.xml" \) | sort -n > fileList
sed -i '/\.\/fileList/d'...
Showing results 1 to 7 of 7

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