Search Results

Search: Posts Made By: bounsy
14,078
Posted By bounsy
If you have Perl 5.x installed, this works: ...
If you have Perl 5.x installed, this works:

find . | perl -ne 'chomp; $a = (stat $_)[2] & 07777; $a = ($a & 07707) | (($a >> 3) & 070); chmod($a, $_)'

Just change the "." parameter of find to...
30,804
Posted By bounsy
Non-destructive counting
I know this is an older thread, but I had a slightly different scenario, where I needed non-destructive counting and thought I'd share.

The s///g and tr/// methods already mentioned remove text...
Showing results 1 to 2 of 2

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