Search Results

Search: Posts Made By: ieth0
16,761
Posted By ieth0
with awk: awk -F',' 'BEGIN {i=0} {for...
with awk:
awk -F',' 'BEGIN {i=0} {for (i=1;i<=NF;i++) print $i}' INPUTFILE |tr -d '"'
2,268
Posted By ieth0
if you dont have any schema of your files name (...
if you dont have any schema of your files name ( how many dashes they have ) , you can use this :


$ echo "SomeFoo - FooBar.foo" |tr -d "-"
SomeFoo FooBar.foo


or if you know how many...
2,014
Posted By ieth0
so if the command1 is : grep $1 $p|sed...
so if the command1 is :
grep $1 $p|sed s/.*=.//|sed 's/<.*//'
and command2 is :
grep "$*" $q|cut -c77-78
and you want to grep the command1's result in command2:
grep "`grep $1 $p|sed...
Forum: Red Hat 09-30-2011
9,608
Posted By ieth0
there are many things you need to check, if your...
there are many things you need to check, if your traffic usage ( in case of correct configuration ) isnt bigger than your server resource then:

1) you need to turn off KeepAlive
2) decrease ...
26,500
Posted By ieth0
if [ "`find -mtime +2`" = "" ];then echo...
if [ "`find -mtime +2`" = "" ];then
echo "NOFILE TO DELETE"
fi
12,346
Posted By ieth0
its because sh on ubuntu is dash not bash , you...
its because sh on ubuntu is dash not bash , you need to use :

bash times.sh
12,346
Posted By ieth0
use while and sleep : #!/bin/bash ...
use while and sleep :


#!/bin/bash
times=0

while true;do
used=`free -m |awk 'NR==3 {print $3}'`
total=`free -m |awk 'NR==2 {print $2}'`
result=`echo "$used / $total" |bc -l`
result2=`echo...
4,180
Posted By ieth0
your "total x" result isnt in thesame line of...
your "total x" result isnt in thesame line of your file path thats why you cant use grep -v to exclude lines with "total 0" in it.

so you need to grep "total 0" after your path line.

so if you...
Showing results 1 to 8 of 8

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