Search Results

Search: Posts Made By: Aussiemick
4,138
Posted By methyl
The output from say "ls -lad" on a directory is...
The output from say "ls -lad" on a directory is the size of the directory file itself (how much space it takes to hold a list of files, properties, permissions and location on disc).

I don't have...
3,876
Posted By agama
First, the column printed by ls that looks like...
First, the column printed by ls that looks like -rwxr-xr-x indicates the file's permissions and the file type. The type is indicated by the first character: d is directory, - is regular file, l is...
278,027
Posted By Neo
Simple rules of the UNIX.COM forums:
RULES OF THE UNIX AND LINUX FORUMS

For the latest version of the community rules (the official community rules page), please visit here. (https://www.unix.com/misc.php?do=cfrules)


No flames,...
694
Posted By itkamaraj
Mr. Pandey Duplicate Post . Continue here ...
Mr. Pandey

Duplicate Post . Continue here

https://www.unix.com/unix-dummies-questions-answers/161850-shell-scripting.html#post302532148

we are here to help you. Not to write the entire...
1,593
Posted By kalak
the sed command for these can just be added to...
the sed command for these can just be added to the original command, through std out. Script 2 would become:
find .. -daystart -mtime 0 -type f | xargs ls -sSh |sed 's/^ *//' >data_170611If for...
1,113
Posted By alister
By default, a field is a sequence of characters...
By default, a field is a sequence of characters delimited by spaces and tabs. So, everything up to the first tab/space is field 1. Any spaces and tabs following that field are a delimiter. ...
2,288
Posted By EAGL€
After you save your files as data_DDMMYY you can...
After you save your files as data_DDMMYY you can use them in below code like file1 and file2, compared files has only one column:

awk '{if(FNR==NR) {arr[$0]++;next} if($0 in arr) { arr[$0]--; if...
2,288
Posted By vidyadhar85
Have you tried using awk? Awk can read multiple...
Have you tried using awk?
Awk can read multiple files and you can use the array concept in there.

ex: awk 'NR==FNR{A[NR]=$0;next}
{do compare operations}{save the value}' file1 file2 > file3
1,919
Posted By yazu
For you idea - it's better to use find: To find...
For you idea - it's better to use find:
To find all files modified between 24 and 48 hours ago in DIRECTORY and its suddirectories:
find DIRECTORY -ctime 1 -type fTo find all the files that were...
1,919
Posted By yazu
You can pipe so: find ... | xargs ls -l
You can pipe so:

find ... | xargs ls -l
Showing results 1 to 10 of 10

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