Search Results

Search: Posts Made By: Aussiemick
4,129
Posted By Aussiemick
I honestly thought the idea of daystart was to...
I honestly thought the idea of daystart was to start mtime from like, 12am, but that command was sorta thrown at me, so I just used it.

Also from the above image, I honestly can't tell what mtime...
4,129
Posted By Aussiemick
daystart ...
daystart
https://www.unix.com/attachment.php?attachmentid=2139&stc=1&d=1309305032



I have a few different outputs for mtime, I don't overly understand the difference between 1 and -1 though...
4,129
Posted By Aussiemick
Oh sorry, so I don't want individual files to be...
Oh sorry, so I don't want individual files to be recorded, I only want the size of the folder.

But using ls, most folders return a size of like 8kb, whereas I know matter of factly I have...
4,129
Posted By Aussiemick
Finding size of all directories
Alright so I've tried a couple different things that at first glance, looked like they worked.


find . -maxdepth 5 -type d -daystart -mtime 1 | xargs du -h Which seems to ignore the previous...
5
2,026
Posted By Aussiemick
Can you post a sample?
Can you post a sample?
1,416
Posted By Aussiemick
You can also use n to go to the next occurence...
You can also use n to go to the next occurence and N to go to the previous randthen a singular input to replace i for insert esc to get out of insert

Thought it might help, I do alot of pattern...
3,863
Posted By Aussiemick
Thanks for the reply, explanation and help. ...
Thanks for the reply, explanation and help.

I'll give it a go most likely on Monday, the big boss has my hands full at the moment.

Cheers,
Michael
3,863
Posted By Aussiemick
Searching for folders/parent folders not files.
Hello again,

A little while back I got help with creating a command to search all directories and sub directories for files from daystart of day x.

I'm wondering if there is a command that...
2,856
Posted By Aussiemick
Understanding / Modifying AWK command
Hey all,

So I have an AWK command here

awk '{if(FNR==NR) {arr[$0]++;next} if($0 in arr) { arr[$0]--; if (arr[$0] == 0) delete arr[$0];next}{print $0 >"list2output.csv"}} END {for(i in...
1,590
Posted By Aussiemick
cheers mate :)
cheers mate :)
1,590
Posted By Aussiemick
Creating a script
Alright, well I did some more research since I originally posted this thread, and as much as I'd like to delete it, I can't, so I'll just extend my initial question a little.

Right now I have 3...
9,363
Posted By Aussiemick
Sorry I was busy all weekend. I'm using...
Sorry I was busy all weekend.

I'm using this to basically run daily checks on our linux box at work.

The initial query is..
find . -daystart -mtime 0 -type f | xargs ls -sSh > data_DDMMYY
...
9,363
Posted By Aussiemick
AWK to excel
I've looked at a few different posts and none have entirely answered my question.

Wondering how i'd go about using AWK to export to an excel file, which i gather would be a .csv file from what...
1,113
Posted By Aussiemick
Awesome, yeah I have a space between the file...
Awesome, yeah I have a space between the file size (700k) and filename (data_sample1_test) on purpose and hoped that each field was infact each string/delimited by spaces.

Also the reason I used...
1,113
Posted By Aussiemick
fields in AWK
I feel like a real leech now, 3 questions in 3 days, but hopefully when I get my head around all of this I can contribute back to this community!

Anyway, so a couple of you guys have gotten me...
2,286
Posted By Aussiemick
Thanks heaps, until i started playing with linux...
Thanks heaps, until i started playing with linux i had never heard of AWK. I'm doing some research now and will hopefully have a better understanding of the language soon ^.^
2,286
Posted By Aussiemick
Comparing lists.. Arrays maybe?
Problem
Part 1.
Gather data from linux server and output to a file named data_DDMMYY
Output file must contain the file name and size

Part 2.
Compare todays data_DDMMYY to yesterdays...
1,913
Posted By Aussiemick
Thanks heaps, I'm not real familiar with this...
Thanks heaps, I'm not real familiar with this sorta thing as you may have noticed :p but I learnt a new terminology, pipe. ^.^

Not to push your good will, but now that I have files being updated...
1,913
Posted By Aussiemick
I don't appear to get an output when I run this? ...
I don't appear to get an output when I run this?


Just wondering if I'm able to get a datestamp and filesize in the output?
Either way this is very useful, adding > filename to the end allowed...
Forum: Open Source 06-08-2011
338,081
Posted By Aussiemick
recently started, only one I was even aware of...
recently started, only one I was even aware of was vim, didn't know i could use notepad in linux o.o ~newbie~
1,913
Posted By Aussiemick
Daily File Checks
Hello all,

I'm sorry if this is answered elsewhere, I've used the search function and can't find the specifics of what I'm after.

I am brand new to playing with linux, and ideally I want to...
Showing results 1 to 21 of 21

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