This is the same command in one line: ---------- Post updated at 06:03 PM ---------- Previous update was at 05:57 PM ----------
Regarding removal of the awk command:
All the code marked light-blue is awk.
If you remove the awk code, then the vertical bar (pipe) is not needed, simply use <(ls -lh).
---------- Post updated at 06:16 PM ---------- Previous update was at 06:03 PM ----------
might work too, but the result will be accordingly.
I am trying to load a group of files and their last dates modified into a text file that will in turn be used with SQL*Loader to load these files into Oracle. I am using a *.ksh script. I am getting the name of the file in by using the following:
for file_ext in 'cat loaddir.ext';
do
find... (2 Replies)
Hello,
I'm on a practical training and i have to change a shell script which print out a HTML-File with all Printers (and features example: IP, Mac etc.) they have in the factory.
The Features of the Printers are on each separate file. i mean every printer have an own file with it features.
... (12 Replies)
i have a k shell script that grep less than certain modified date
-------------------------------------------------
#!/bin/ksh
for i in *
do
day=`ls -ltr | grep $i | tr -s " " | cut -d " " -f6-7 | awk 'substr($0,7,4)substr($0,1,5)substr($0,11)<"Feb 1"' `
echo $day
done... (2 Replies)
Sorry for the basic question, but I have a feeling that my developers are circumventing our change control process, and I want to be able to easily keep track of the last modified date of sub-folders of the production folder.
Basically, we have this major folder PROD, and then each application... (1 Reply)
Hello all - I've looked and have not been able to find a "find" command that will list the last modified date of files within a specific directory and its subdirectories. If anyone knows of such a command it would be very much appreciated!
If possible, I would like to sort this output and have... (5 Replies)
Hi ,
In my directory , i have many days file but i want to see all those which are of todays date.
i tried this but it gives all the files
mtime -0 |ls -ltr
I tried the below option as well.
19635 find -iname "*.LOG" -mtime
19636 ls -ltr *.LOG -mtime -1
19637 ls -ltr *.LOG... (7 Replies)
Can someone draw up a script that for every file, folder and subfolder and files that will copy the creation date over top of the modified date??
I know how to touch every file recursively, but no idea how to read a files creation date then use that to touch the modification date of that file,... (3 Replies)
I'm using a script that I need to get a file's "last modified date" in a format like 01:51:14 PM. We are running on AIX 6.1.0.0. I can't seem to find the right command parameters. Help! (4 Replies)
Hi,
Am performing a find based on filename and result can contain multiple files being found
Let's say my find command is
find /Archive -f -name 12345.pdf
and result of find command is
/Archive/Folder A/12345.pdf
/Archive/Folder B/12345.pdf
please note white space in folder names
I... (2 Replies)
Discussion started by: gigagigosu
2 Replies
LEARN ABOUT DEBIAN
netsend
NETSEND(1) netsend NETSEND(1)NAME
netsend - a speedy filetransfer and network diagnostic program
SYNOPSIS
netsend [OPTIONS] PROTOCOL MODE { COMMAND | HELP }
DESCRIPTION PROTOCOL
Protocol is one of
tcp, udp, udplite, dccp, sctp or tipc.
When using tipc, you must also specify a socket type, e.g. netsend tipc MODE -t SOCK_STREAM.
MODE
Mode is either receive or transmit.
OPTIONS -r Nn,Nd,Nm,Nf
Round trip probes options:
Nn - Number of iterations of round trip probes. Default is to perform 10 attempts.
Don't set to less then 5 because measurement results will not very predicating.
Nd - Size of rtt payload. This is the number of bytes piggybacking (plus the
netsend rtt header). Default is 500 byte, maybe your mtu minus netsend header
minus protocol header (tcp, udp) will better fit for your needs.
Nm - for the round trip time probes netsend calculates a deviation. With this
flag you can adjust the filter. Default is 4. Lower values drain more probes
out, so be carefully with this option.
For example: if you have measured rtt probes of 4, 5, 5, 6 and 15 ms. The
average is 7. Covariance is 16.4 and deviation is 4.04. If you select 2 here as
the multiplier, then you filter all rtt probes with higher values then 8.08 (for
this example you filer 15ms out).
This will help to discard some nonesense probes who are evoked through cold code
paths (cache misses, page faults, ...) or network anomalies. Use this option
carefully!
-f forces to don't perform rtt probes but take N milliseconds as average value. With
this option you can figure out the behaviour of satelite links (e.g you say -D500f)
-b
followed by a number: sets read/write buffer size to use. Default is 8192 for read/write and
size_of_file_to_send for mmap/sendfile.
-m
followed by a memadvise(2) option: normal, sequential, random, willneed, dontneed, noreuse.
-p
followed by a number: set TCP/UDP/DCCP/SCTP port to use. Default is 6666.
-P
followed by scheduling policy: sched_rr, sched_fifo, sched_batch or sched_other
-s
followed by a setsockopt(2) optname and optval. netsend maps setsockopt levels and
optlen internally. running 'netsend -s list' will print a list of all setsockopt
optnames currently recognized by netsend.
-T
followed by either human or machine: sets output format
-u
followed by the transmit function to use. One of sendfile, mmap, splice or rw.
When not specified, rw (read/write) is used.
Note that not all protocols support all transfer methods, e.g. TIPCs connectionless sockets (SOCK_RDM and SOCK_DGRAM)
do not support the sendfile system call. Also, the amount of data that can be sent in a single operation may be limited
by the network protocol used.
EXAMPLES
Listen for incoming SCTP connections, incoming data goes to stdout:
./netsend -T human -v stressful sctp receive
Send file largefile via TCP with output in machine parseable format:
./netsend -T machine tcp transmit largefile host.example.org
Receive data via TCP with MD5SIG from peer 10.0.0.1:
./netsend tcp transmit -C largefile ffff::10.0.0.1 ./netsend tcp receive -C ffff::10.0.0.1
EXIT STATUS
netsend returns a zero exist status if it succeeds. Non zero is returned in case of failure. Following failure codes are implemented:
0 - succeed
1 - failure in memory handling
2 - command line option error
3 - failure which fit in any categories
4 - network error
5 - failure in netsend header (maybe corrupted hardware)
6 - netsend internal error (should never happen[tm])
AUTHOR
Hagen Paul Pfeifer
Florian Westphal
SEE ALSO
http://netsend.berlios.de
POD ERRORS
Hey! The above document had some coding errors, which are explained below:
Around line 132:
You forgot a '=back' before '=head1'
You forgot a '=back' before '=head1'
You forgot a '=back' before '=head1'
perl v5.10.0 netsend NETSEND(1)