Yet another bash questions
EDIT: SOLUTION POSTED BELOW.
So the script i wrote to check the file time stamps against the terminal time stamp, has a problem. The more I think about it, the more tedious it seems! I have this so far Code:
#!/bin/bash How could I go about this?? I figure for starters, I could check the results with file --mime and if it returns as a directory, i could go from there. This parses file --mime for the word directory -> file --mime dirName | sed -e 's/[-;]/ /g' | awk '{print $3}' I am not asking how to do this. I can do it but it would be choppy. I want to know what the most efficient way of going about this is! Thanks. EDIT: I was initially going to put the end results in another array and run everything again that applies to directories but that seems a bit unnecessary! The check for all files being a directory or not Code:
|
here it is, but it feels/looks too heavy!
Code:
#!/bin/bash |
Quote:
Code:
# this should go in .bashrc Code:
#!/bin/sh |
Quote:
|
All times are GMT -5. The time now is 01:11 AM. |