07-02-2018
This is a duplicate of the thread:
Files by size
Please continue any discussion on this topic there.
This thread is closed.
Last edited by Don Cragun; 07-02-2018 at 11:17 PM..
Reason: Fix typo.
This User Gave Thanks to Don Cragun For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is there a way to sort files by size using the ls command?
thanks in advance (1 Reply)
Discussion started by: AMD
1 Replies
2. Shell Programming and Scripting
Hi,
I have one file stat.
Stat file contents are as follows: for example.
H50768020040913,00260100,507680,13,0000000643,0000000643,00000,0000
H50769520040808,00260100,507695,13,0000000000,0000000000,00000,0000 H50770620040611,00260100,507706,13,0000000000,0000000000,00000,0000
Now i... (1 Reply)
Discussion started by: davidpreml
1 Replies
3. Shell Programming and Scripting
hello Experts,can any one tell me that i have a folder data in linux.
and there are three files A,B,C in the directory.
cany any one tell me the command that which can tell me how much space is occupied by each file and its free space also
for example
FILES USED SPACE FREE SPACE
A ... (1 Reply)
Discussion started by: shary
1 Replies
4. Shell Programming and Scripting
Basic:
find . -type f -name “*.txt” -print | awk '{gsub("Ontem", "AntesdeOntem", $0); print > FILENAME}' *.txt
The idea is in folder /home/myapontamentos
I have some files and i need to change in all them the word "ontem" to "antesdeontem".
But bigger files are cut (size i mean)... (4 Replies)
Discussion started by: single
4 Replies
5. Shell Programming and Scripting
hi,
i am facing a problem in merging two files using awk,
the problem is as stated below,
file1:
A|B|C|D|E|F|G|H|I|1
M|N|O|P|Q|R|S|T|U|2
AA|BB|CC|DD|EE|FF|GG|HH|II|1
....
....
....
file2 :
1|Mn|op|qr (2 Replies)
Discussion started by: shashi1982
2 Replies
6. UNIX for Dummies Questions & Answers
hello
i would like to copy files from 1 location to a nother, but it has only to copy files which are newer or have a different filesize.
all has to be logged to a copy.log file (als skipped files should be in the log)
is this possible with the cp command (1 Reply)
Discussion started by: arnoldg
1 Replies
7. UNIX for Dummies Questions & Answers
Hi guys,
I need to do 100 files comparison after I sorted the files. There are no specific key for sorting so i plan to arrange the files based on the file size. The command that i used to sort the files by size is as per below:-
ls -l | sort +4rn | awk '{print $5, $9}'
The problem that i... (3 Replies)
Discussion started by: shahril
3 Replies
8. Shell Programming and Scripting
To find the whole size of a particular directory i use "du -sk /dirname".. but after finding the direcory's size how do i make conditions like if the size of the dir is more than 1 GB i hav to delete some of the files inside the dir (0 Replies)
Discussion started by: shaal89
0 Replies
9. Shell Programming and Scripting
Hello,
I want remove files have same size in a directory.
this command only find this files.
ls -l | awk '$1!~/^d/{if(size!=""){ print}size=$8}'
I want to remove the files of the same size.
samples: 5 files are same size. I want to keep only first file.
Thank you very much for your help. (3 Replies)
Discussion started by: hoo
3 Replies
10. UNIX for Beginners Questions & Answers
I am new to Unix and need help. I have several files of different sizes Example: 1 GB , 2GB , 500 mb ,200mb and even small sizes. What I want is I want to pick files and sum of the combined file size should be less than 3 Gb and move them to a different directory. when I do ls -ltr I want... (5 Replies)
Discussion started by: pyarigreat
5 Replies
LEARN ABOUT DEBIAN
ns_geturl
ns_geturl(3aolserver) AOLserver Built-In Commands ns_geturl(3aolserver)
__________________________________________________________________________________________________________________________________________________
NAME
ns_geturl - commands
SYNOPSIS
ns_geturl URL ?headersSetId?
_________________________________________________________________
DESCRIPTION
This command retrieves the contents of the specified URL. The URL must be a remote http server, or a file relative to the pageroot (begins
with /). It does not handle a relative request or follow redirects. The headerSetId option is a variable containing an ns_set Id (not
expanded with a $) used to store the remote server headers (see example). ns_geturl only support HTTP version 1.0.
EXAMPLES
set page [ns_geturl "www.aolserver.com"]
ns_return 200 text/html $page
This fetches the contents of www.aolserver.com and returns that page to the client.
set headers [ns_set new]
set page [ns_geturl "www.aolserver.com" headers]
for {set i 0} {$i < [ns_set size $headers]} {incr i} {
ns_puts "Key: [ns_set key $headers $i]"
ns_puts "Value: [ns_set value $headers $i]"
}
This time, a blank headerset is passed to ns_geturl so we can retrieve the headers of the remote page, which we print out to the client.
set file [ns_geturl "/foo/bar.html"]
ns_return 200 text/html $file
This example fetches the /foo/bar.html file relative to the pageroot and returns it to the client.
SEE ALSO
nsd(1), info(n), ns_set(n), ns_httpget(n)
KEYWORDS
AOLserver 4.0 ns_geturl(3aolserver)