02-17-2018
As always:
- What operating system are you using?
- What shell are you using?
- What have you tried to solve this problem on your own?
One might guess that you will need to modify
/swadmin/mseed2sac:
- Why haven't you shown us the man page for this utility?
- Why haven't you shown us the source code for this utility?
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I would like to list the files from all directories that has been modified more than 1 month ago, and whose name is like '*risk*log'.
I think a script like this should work :
ls -R | find -name '*risk*.log' -mtime 30 -type f
But it tells me "no file found" though I can see some.
... (4 Replies)
Discussion started by: Filippo
4 Replies
2. Shell Programming and Scripting
Hello, this is probably another really simple tasks for most of you gurus, however I am trying to make a script which takes an input, greps a specific file for that input, prints back to screen the results (which are directory names) and then be able to use the directory names to move files.... (1 Reply)
Discussion started by: JayC89
1 Replies
3. Shell Programming and Scripting
I have searched about 30 threads, a load of Google pages and cannot find what I am looking for. I have some of the parts but not the whole. I cannot seem to get the puzzle fit together.
I have three folders, two of which contain different versions of multiple files, dist/file1.php dist/file2.php... (4 Replies)
Discussion started by: bkeep
4 Replies
4. Shell Programming and Scripting
I would like to transfer all files ending with .log from /tmp and to /tmp/archive (using find )
The directory structure looks like :-
/tmp
a.log
b.log
c.log
/abcd
d.log
e.log
When I tried the following command , it movies all the log files... (8 Replies)
Discussion started by: frintocf
8 Replies
5. Shell Programming and Scripting
Hi Guys,
What I am looking at doing is to run a C program in my home directory, but output files in multiple directories BUT not at the same instance.
For e.g.
1st instance:
Run program.c and output results in path /aaa/bbb/ccc/
2nd instance:
Run program.c again and output results... (9 Replies)
Discussion started by: Jatsui
9 Replies
6. Shell Programming and Scripting
Hi,
I have to find specific files only in the current directory...not in the sub directories.
But when I use Find command ... it searches all the files in the current directory as well as in the subdirectories. I am using AIX-UNIX machine.Please help..
I am using the below command. And i am... (2 Replies)
Discussion started by: aakishore
2 Replies
7. Solaris
Hi everyone
My issue is this, I need to list all the sub directories in a directory that contains files that have the extension *.log, *.dat and *.out . After reviewing the output i need to delete those directories i do not need. I am running Solaris 10 in a bash shell. I have a script that I... (2 Replies)
Discussion started by: jsabo40
2 Replies
8. Shell Programming and Scripting
hi,
i have a requirement to delete all the files from all the directories except some specific directories like archive and log.
for example:
there are following directories such as
A B C D Archive E Log F
which contains some sub directories and files. The requirement is to delete all the... (7 Replies)
Discussion started by: Little
7 Replies
9. UNIX for Beginners Questions & Answers
Hello,
I'm a first time poster looking for help in scripting a task in my daily routine. I am new in unix but i am attracted to its use as a mac user.
Bear with me...
I have several files (20) that I manually drag via the mouse into several named directories over a network. I've used rsync... (14 Replies)
Discussion started by: SonnyClark
14 Replies
LEARN ABOUT CENTOS
ip-monitor
IP-MONITOR(8) Linux IP-MONITOR(8)
NAME
ip-monitor, rtmon - state monitoring
SYNOPSIS
ip [ ip-OPTIONS ] monitor [ all | OBJECT-LIST ] [ file FILENAME ]
DESCRIPTION
The ip utility can monitor the state of devices, addresses and routes continuously. This option has a slightly different format. Namely,
the monitor command is the first in the command line and then the object list follows:
ip monitor [ all | OBJECT-LIST ] [ file FILENAME ]
OBJECT-LIST is the list of object types that we want to monitor. It may contain link, address, route, mroute, prefix, neigh and netconf.
If no file argument is given, ip opens RTNETLINK, listens on it and dumps state changes in the format described in previous sections.
If the file option is given, the program does not listen on RTNETLINK, but opens the given file, and dumps its contents. The file should
contain RTNETLINK messages saved in binary format. Such a file can be generated with the rtmon utility. This utility has a command line
syntax similar to ip monitor. Ideally, rtmon should be started before the first network configuration command is issued. F.e. if you
insert:
rtmon file /var/log/rtmon.log
in a startup script, you will be able to view the full history later.
Nevertheless, it is possible to start rtmon at any time. It prepends the history with the state snapshot dumped at the moment of starting.
SEE ALSO
ip(8)
AUTHOR
Original Manpage by Michail Litvak <mci@owl.openwall.com>
iproute2 13 Dec 2012 IP-MONITOR(8)