Search Results

Search: Posts Made By: sudobash
3,933
Posted By sudobash
would awk be a better tool?
would awk be a better tool?
3,933
Posted By sudobash
ok that fixed that issue but it now means all the...
ok that fixed that issue but it now means all the elements in that array have been replaced so the file before:-


HELLO-P1-B
YO-PA-B
HI-P1Q-B
MWM-PXL-B
SFDS-PKL-B
SD-PAA-B
ASHJ-P1-B

...
3,933
Posted By sudobash
sed and arrays
im trying to get sed to replace values while stepping through and array;-




package=( P1 PA PXL PKL )
tier=( T1 T2 T3 T4 )

for p in ${package[@]}
do
sed s/$p/${tier[@]}/...
1,347
Posted By sudobash
Indeed i've tried to do this using a for loop and...
Indeed i've tried to do this using a for loop and sed but not sure if this is the best way of achieving this as i'll need another list for the replacement variable:-

for i in `cat text.file`
do...
1,347
Posted By sudobash
Replace string - searching from input file
Hi I need help with writing a script to change a string in a file.

The script needs to read an input list (list.txt) file line by line searching for that string in a text.file. Once the string is...
3,462
Posted By sudobash
well thanks for your advice all but I ended up...
well thanks for your advice all but I ended up using
perl -e 'while (--$ARGV[0] and fork) {}; while () {}' $NUMBER_OF_CPU &

but i re-niced the process until cpu was at 90-95%
3,462
Posted By sudobash
[QUOTE=Corona688;302855225]Run one instance for...
[QUOTE=Corona688;302855225]Run one instance for each CPU.



I've updated my original post to provide further clarity
3,462
Posted By sudobash
Script for CPU usage -Linux
Hi all
I was wondering if its possible to write a script to keep CPU usage at 90%-95%? for a single cpu linux server?

I have a perl script I run on servers with multple cpu's and all I do is max...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 03:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy