Search Results

Search: Posts Made By: wbathurs
4,819
Posted By wbathurs
I am not sure if you code example was complete. I...
I am not sure if you code example was complete. I tried replicating with a simple shell script:


#!/bin/bash
echo $1 $2 $3


Then did the following:

while true;
do
test.sh
...
5,862
Posted By wbathurs
You can try forcing the issue this way: #...
You can try forcing the issue this way:


# First declare usep as an integer
typeset -i usep
usep=$(echo $output | awk ' { print $1 }' | cut -d'%' -f1 )
10,826
Posted By wbathurs
It may be a problem with your quoting. ...
It may be a problem with your quoting.

ldcount="grep -c "stat_load" $LOAD_STATUS_DIR"

You have nested double quotes..

I think you want something like:

ldcount="grep -c stat_load...
17,031
Posted By wbathurs
example using sed
Here is an example that should process all of your .csv files.

for CSV_FILE in *.csv;
do if [ -f $CSV_FILE ];
then sed -e 's/\x0d//g' $CSF_FILE > /tmp/foo.$$;
mv /tmp/foo.$$...
2,448
Posted By wbathurs
perl sorting
Assuming: @match = (201001,201002,201001,201002);

try this, which is assuming numerical sort:

@sorted = sort { $a <=> $b } @match ;

if char based:

@sorted = sort { lc($a) cmp lc($b) }...
Showing results 1 to 5 of 5

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