Search Results

Search: Posts Made By: Kiint
15,173
Posted By Kiint
Awesome single line version, perfect except the...
Awesome single line version, perfect except the lack of nested directories.

Instead of a single directory 08072511 I need them nested like

>08
->07
-->25
--->11
15,173
Posted By Kiint
Your script is absolutely perfect, I love it ......
Your script is absolutely perfect, I love it ... except ...

the last --> [ ! -d $dir ] && mkdir -p $dir && mv $i $dir <-- wouldnt actually move the file if the directory existed already, so I...
15,173
Posted By Kiint
Well, its working (for those out there that...
Well, its working (for those out there that stumble across this site for a similar script)

Its not elegant, sane or other ... but it works.

If the better experienced here can clean it up and...
15,173
Posted By Kiint
Even modifying for various shell stupidity doesnt...
Even modifying for various shell stupidity doesnt help

./filter.sh: line 17: syntax error near unexpected token `fi'
./filter.sh: line 17: ` fi'


#!/bin/bash -x

for file in *.jpg;...
15,173
Posted By Kiint
What I have so far, that I imagine should work...
What I have so far, that I imagine should work (but doesnt) is (and isnt very elegant or sane)


#!/bin/bash

for file in *.jpg; do

set yy = `echo $file | awk '{split($0,a,""); print...
15,173
Posted By Kiint
Bash and Awk for creating directories and moving files
I have a security system that FTPs the camera files to my machine, however I want to sort the pictures (taken every 30s) into directories by hour.

Every picture uses the following file format....
Showing results 1 to 6 of 6

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