Search Results

Search: Posts Made By: chewku
1,277
Posted By Scrutinizer
stat is not available everywhere. This may be an...
stat is not available everywhere. This may be an alternative:

$fromDir=/home/dirA
$toDir=/home/dirB
cd "$fromDir"
LANG=C ls -nl | # use POSIX locale for ls command...
1,277
Posted By balajesuri
#! /bin/bash $fromDir=/home/dirA ...
#! /bin/bash

$fromDir=/home/dirA
$toDir=/home/dirB

for x in $fromDir/*
do
new=$(stat -c%y $x | awk -F'[ -]' '{print $3}')
mkdir $toDir/$new
cp $fromDir/$x $toDir/$new/
done
805
Posted By agama
It would help to know what the command syntax...
It would help to know what the command syntax that you are running to determine whether or not the file is spam, and more importantly if it indicates that it is spam via exit code, or message or some...
Showing results 1 to 3 of 3

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