Could you not also use find to drive this rather than building your own where you have to feed it a list? You don't give much information about what else there is, but this might help:-
If the file name search is for path names, then you could do something more like this:-
Do either of these give you an option? They should be more efficient than calling grep for every parameter, especially as the list gets longer and would reduce the risks of too long a command line getting rejected.
You could even combine them if that helps:
If you want all files that match save[0-9][0-9] and finish .sh then you can
find . -name "*save[0-9][0-9]*.sh" .....
If you want files in directories that match save[0-9][0-9] and finish .sh then you can
find *save[0-9][0-9]* -name "*.sh" ......
If you want some other variation or combination we can probably help there too.
I have created symbolic links to several frequently used commands, for example:
"lt" is a link to "ls -ltrgo|tail". What can I do to make these links available system-wide, or at least in the directories my coworkers are in most of the time? I have copied the link to several directories, and... (6 Replies)
Hi, I have a task to search for a file called 'Xstartup' in the whole system because there might be different versions of it which overrite eachother.
Can anyone suggest a smart command to run this search ? The machine needs to scan every single folder beginning from root.
Please help, I am... (5 Replies)
Hello,
I am new to shell scripting and I was trying to write a script that would force a system wide password change except for admins. I am having some trouble and any help that someone could give me would be greatly appreciated. I am trying to do it by using the UID as the marker for anyone... (6 Replies)
Hi all,
Is there any system wide limit on number of user threads. I only find nkthread as a tunable parameter,apart from the `per process limit`. (1 Reply)
Hi,
I need to look for a config file (ldap.conf) and pick the latest modified file.
`locate` tells me there are many ldap.conf's, some in /etc, /usr, /home, etc.
Is there some way I can sort them by last modified time via bash?
I was thinking maybe I could pipe the output of `locate` to `ls... (4 Replies)
Dear Fellows;
As being new to linux, i have tried to synamically load a custom library which overrides some system calls like conncet(), socket() etc.... for custom purposes.
It works well, if declaring the environment path LD_PRELOAD and execution of the application to be override... (0 Replies)
We need to have many of our users all send encrypted files to a single FTP server. The problem, if I understand how encryption/decryption works (which I don't), is that each user would normally have their own private and public key. The other end needs to be able to decrypt the file(s) using a... (6 Replies)
I have downloaded and installed a library called htslib for specific bioinformatic use but not for the system (I'm using Ubuntu 18.04). Only parts of the library is needed for my exercise to parse data in a type called VCF format (basically tab-delimited file but contains many information in... (14 Replies)
Discussion started by: yifangt
14 Replies
LEARN ABOUT MOJAVE
nodesave
NODESAVE(8) Linux System Managers Manual NODESAVE(8)NAME
nodesave - Saves NET/ROM routing information
SYNOPSIS
nodesave [-p path] [-v] [filename]
DESCRIPTION
Nodesave saves the contents of the /proc filesystem entries for the NET/ROM routing tables. The output of the program is in the form of a
Bourne shell script that calls nrparms(8) to recreate the NET/ROM routing information. If no filename is given on the command line, the
program writes the script to stdout.
Typically nodesave would be used when taking a system off-air so that the NET/ROM routing may be quickly restored when the system is
brought back on-line.
OPTIONS -p path Set the path to the nrparms binary. This only affects the output of the program. Default is /usr/sbin.
-v Display the version.
FILES
/proc/net/nr_neigh
/proc/net/nr_nodes
SEE ALSO netrom(4), netromd(8), nrparms(8).
AUTHOR
Tomi Manninen OH2BNS <oh2bns@sral.fi>
Linux 4 July 1999 NODESAVE(8)