9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Optimization shell/awk script to aggregate (sum) for all the columns of Huge data file
File delimiter "|"
Need to have Sum of all columns, with column number : aggregation (summation) for each column
File not having the header
Like below -
Column 1 "Total
Column 2 : "Total
...
...... (2 Replies)
Discussion started by: kartikirans
2 Replies
2. Shell Programming and Scripting
Hi all
I wrote below code:
#!/bin/sh
R='\033
do you have any idea how to optimize my code ? (to make it shorter eg.) (11 Replies)
Discussion started by: primo102
11 Replies
3. Shell Programming and Scripting
Since there are approximately 75K gsfiles and hundreds of stfiles per gsfile, this script can take hours. How can I rewrite this script, so that it's much faster? I'm not as familiar with perl but I'm open to all suggestions.
ls file.list>$split
for gsfile in `cat $split`;
do
csplit... (17 Replies)
Discussion started by: verge
17 Replies
4. Shell Programming and Scripting
I have created Shell script with below awk code for replacing special characters from input file.
Source file has 6 mn records. This script was able to handle 2 mn records in 1 hr. This is very slow speed and we need to optimise our processing.
Can any Guru help me for optimization... (6 Replies)
Discussion started by: Akshay
6 Replies
5. Shell Programming and Scripting
I already have a solution to my problem, but I'm looking to see if it can be made more succinct and faster. The problem: given a list, as shown below, extract the pathname for any file in a directory named 'ample' and return it's index into the list. The index is also in the data itself. Note that... (1 Reply)
Discussion started by: prigo
1 Replies
6. UNIX for Dummies Questions & Answers
Hi all...........
Please, Anyone Tell me About How to Optimize Unix/Linux Resources to the Best use of them???????
And also specify if there is some tools for it.
Thanks in Advance...
Regards
Kuldeep (2 Replies)
Discussion started by: ks47
2 Replies
7. Shell Programming and Scripting
Dear All,
Sorry to bother you. But I tried the below problem but didn't come up a good solution. A have a file containing such info
2009-03-14 22:01:01,430 ::
2009-03-14 22:05:01,430 ::
I need to show simply
22:01:01, 568, 181, 472
22:05:01, 903, 458, 572
that is time, TID,... (11 Replies)
Discussion started by: saifurshaon
11 Replies
8. Shell Programming and Scripting
:o Hi,
I am writing a script in which at some time, I need to get the process id of a special process and kill it...
I am getting the PID as follows...
ps -ef | grep $PKMS/scripts | grep -v grep | awk '{print $2 }'can we optimize it more further since my script already doing lot of other... (3 Replies)
Discussion started by: vivek.gkp
3 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I have prepared script which is taking more time to process. find below script and help me with fast optimized script:-
cat name.txt | while read line
do
name=$(echo $line| awk '{print $8}')
MatchRecord=$(grep $name abc.txt | grep -v grep )
echo "$line | $MatchRecord" | awk... (2 Replies)
Discussion started by: aju_kup
2 Replies