Search Results

Search: Posts Made By: Bperl1967
1,133
Posted By in2nix4life
Another thing you can try is to add the -depth...
Another thing you can try is to add the -depth switch. It'll force the find comand to test files before directories. The effect being that if a directory contains files that do not meet the...
1,133
Posted By Corona688
find is recursive, so your rm doesn't have to be....
find is recursive, so your rm doesn't have to be.

You shouldn't depend on the modification time of the directory anyway, since I think that relates to when files were created/deleted, not when...
108,326
Posted By Neo
Forum Video Tutorial: How to Use Code Tags
How to Use Code Tags in The UNIX and Linux Forums

Developer: This video tutorial was created by scott (https://www.unix.com/members/302063521.html) for forum users. Everyone should use code tags...
6,921
Posted By gary_w
echo $# echo $@
echo $#
echo $@
1,481
Posted By Scott
Yes, because the long listing of ls (with -l)...
Yes, because the long listing of ls (with -l) gives (i.e.) -r-x... 2 user group 1234 20 Sep 2010 filename.. These all become arguments to xargs.

You can do everything you need without -l
...
1,072
Posted By Corona688
That's a useless use of backticks...
That's a useless use of backticks (http://partmaps.org/era/unix/award.html#backticks) or would've been. Why use `echo $var` when you already have $var?

if [ "$host" == "xxx_xxx_test" ]
then
...
1,037
Posted By mirni
You can sort on second field using underscore as...
You can sort on second field using underscore as delimiter :
ls * | sort -t_ -k2

That is provided that filename before date doesnt contain underscore.
Showing results 1 to 7 of 8

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