Sponsored Content
Top Forums Shell Programming and Scripting Attach filename to wc results on massive number of files Post 303032371 by Corona688 on Friday 15th of March 2019 04:29:22 PM
Old 03-15-2019
Except that they are synchronized. The problem was always all your other processes stomping on your file simultaneously.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

awk | stop after specified number of results

I am searching some rather large text files using grep and or awk. What I would like to know is if there is a way (either with grep, awk, or realy any other unix tool) to stop the search when a predifined number of results are returned. I would like to do this for speed purpuses. When i get... (6 Replies)
Discussion started by: evan108
6 Replies

2. UNIX for Advanced & Expert Users

pine does'nt attach files

Hello All, I am maintaining a server and I use pine as MUA and sendmail as MTA. Suddenly many users in the network face the problem of not being able to attach files using pine. I checked the sendmail.cf file and found a variable "MaxMessageSize = 1000000". Eventhough the message size... (2 Replies)
Discussion started by: maybemedic
2 Replies

3. Shell Programming and Scripting

attach 2 files using mailx

if test.dat is the file cat test.dat|uuencode test.dat|mailx -s "subject" mailid can be used for attaching test.dat how can i attach more than one file to a mail using mailx (2 Replies)
Discussion started by: anumkoshy
2 Replies

4. Shell Programming and Scripting

attach multiple files in email

I am trying to send multiple files as attachment in one email, I tried to search but couldn't find. Please let me know if any solutions. (2 Replies)
Discussion started by: mgirinath
2 Replies

5. Shell Programming and Scripting

Filename from splitting files to have the same filename of the original file with counter value

Hi all, I have a list of xml file. I need to split the files to a different files when see the <ko> tag. The list of filename are B20090908.1100-20090908.1200_CDMA=1,NO=2,SITE=3.xml B20090908.1200-20090908.1300_CDMA=1,NO=2,SITE=3.xml B20090908.1300-20090908.1400_CDMA=1,NO=2,SITE=3.xml ... (3 Replies)
Discussion started by: natalie23
3 Replies

6. Shell Programming and Scripting

How to attach two files in unix script

Hi, My script has to send 2 files as a separate attachment(Note : files to be sent without zipping) to the specified email id. Below code was used but it is not attaching the file as expected instead the file contents are displayed in the body of the email. Kindly,help with your... (22 Replies)
Discussion started by: meva
22 Replies

7. UNIX for Dummies Questions & Answers

massive tarred grib files totally unacceptable

Hi, I have 7 terabytes of tar files, one for every single day since 1980. Inside these tar files are GRIB files, each with 100+ variables. There's 8 GRIBs in each tar, corresponding to different times of the day. I need 6 friggin variables..., and it takes TWO WEEKS TO EXTRACT ALL THE TAR FILES... (3 Replies)
Discussion started by: sammysoil
3 Replies

8. Shell Programming and Scripting

counting the number of characters in the filename of all files in a directory?

I am trying to display the output of ls and also print the number of characters in EVERY file name. This is what I have so far: #!/bin/sh for x in `ls`; do echo The number of characters in x | wc -m done Any help appreciated (1 Reply)
Discussion started by: LinuxNubBrah
1 Replies

9. Shell Programming and Scripting

How to count number of results found?

Hi guys, I'm struggling with this one, any help is appreciated. I have File1 with hundreds of unique words, like this: word1 word2 word3 I want to count each word from file1 in file2 and return how many times each word is found. I tried something like this: for i in $(cat file1); do... (13 Replies)
Discussion started by: demmel
13 Replies

10. Shell Programming and Scripting

Adding filename and line number from multiple files to final file

Hi all, I have 20 files (file001.txt upto file020.txt) and I want to read them from 3rd line upto end of file (line 1002). But in the final file they should appear to start from line 1. I need following kind of output in a single file: Filename Line number 2ndcolumn 4thcolumn I... (14 Replies)
Discussion started by: bioinfo
14 Replies
nproc(5)							File Formats Manual							  nproc(5)

NAME
nproc - limits the number of processes allowed to exist simultaneously VALUES
Failsafe Default Allowed values The system may allow settings higher than 60,000 but such values are unsupported. Setting below interferes with the system's ability to execute in multi-user mode. Some configurations may have a higher minimum. must be greater than must be greater than Recommended values processes per processor. DESCRIPTION
The tunable controls the absolute number of processes allowed on a system at any given time. Increasing it allows more processes, and low- ering it restricts the number of processes. You can determine that is too low when the message is seen in the message buffer. Use or to read the message buffer. This message indi- cates that an application was unable to create a new process. Setting too low can cause application failures due to an inability to fork new processes. You can determine how many processes have been used simultaneously by calling and examining the This field indicates the "high water" mark of the number of processes that have been simultaneously used. Who Is Expected to Change This Tunable? Anyone expecting to run large numbers of processes. Restrictions on Changing None. This tunable is dynamic. When Should the Value of This Tunable Be Raised? Increase the value of when running large numbers of processes simultaneously. What are the Side Effects of Raising the Value? None. When Should the Value of This Tunable Be Lowered? Lower the value only to limit the number of processes on the system, or when there is memory pressure and the value of is far above the expected usage. What are the Side Effects of Lowering the Value? Lowering the value increases the risk of application failure due to the inability to fork new processes. What Other Tunable Values Should Be Changed at the Same Time? Increase to ensure there are sufficient threads for each process. Adjust as the default formula is multiple of A single user may not consume all processes on the system (see Some of these other tunables used to adjust automatically. These adjustments must now be made explicitly. Other tunables may require a reboot to take effect. So, dramatic increases in the value of without reboot should be made with caution. WARNINGS
All HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future releases of HP-UX. The effective number of processes allowed to exist simultaneously may be affected by the values of the tunables and Some applications may have been coded with a built-in assumption that the number of processes cannot exceed 30,000, which was the maximum imposed by prior versions of HP-UX. Such applications may fail on configurations which allow and/or create more than 30,000 processes. The HP-UX kernel creates internal data structures optimized for the value of the tunable parameter at boot time. After significant changes to the tunable it is recommended that a reboot be scheduled so that the kernel can reoptimize these internal data structures. Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation, some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun- able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was factory installed on your system, see at AUTHOR
was developed by HP. SEE ALSO
ksi_alloc_max(5), maxuprc(5), nkthread(5), process_id_max(5), process_id_min(5). whitepaper, available on Tunable Kernel Parameters nproc(5)
All times are GMT -4. The time now is 01:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy