Search Results

Search: Posts Made By: jelloir
11,157
Posted By Scrutinizer
Hi, try: find /tmp/test/ -type f -name "*.ogg"...
Hi, try:
find /tmp/test/ -type f -name "*.ogg" -exec sh -c 'echo "{} $(basename "{}" .ogg).mpg"' \;
24,966
Posted By ahamed101
Try this... amixer... | awk '/^ Front...
Try this...

amixer... | awk '/^ Front Left/{if($7~"[off]"){print "MUTED"}}'


--ahamed
11,027
Posted By itkamaraj
grep -w "/mnt/backup" /proc/mounts
grep -w "/mnt/backup" /proc/mounts
5,247
Posted By bartus11
If you don't need the "Normal backup" line then...
If you don't need the "Normal backup" line then this can do: virtualMachines="IIBSBS IIBVICDMS01 IIBVICMA01"
for i in ${virtualMachines}; do awk "/$i/,/Duration/" /tmp/backup.log > vdrlog-$i; doneIn...
5,659
Posted By Scrutinizer
The read solution will not work in bash, since...
The read solution will not work in bash, since the part after the pipe runs in a subshell and thus the variables lose their values.
Your original idea would work, with a different variable name and...
10,354
Posted By john1212
I think you want it. cat...
I think you want it.
cat /etc/rsyslog.d/mugsyback.conf
# - mugsyback logging -
local1.notice /var/log/mugsyback.log
local9.debug /dev/null

and

sysLogger () {
...
9,989
Posted By Franklin52
Avoid the use of backticks or $() and cat: ...
Avoid the use of backticks or $() and cat:
while read HOST
do
ALIAS="ssh_$( echo $HOST | awk -F "." '{print $2}' )"
HOST=$( echo $HOST | awk -F ":" '{print $1}' )
PORT=$( echo $HOST | awk...
9,989
Posted By dr.house
[house@leonov] cat .ssh_hosts ...
[house@leonov] cat .ssh_hosts
mx.example1.com.au:2225
mx2.example2.com.au:2225
mx.example3.com.au:2225
mail.example4.com.au:2225
mail.example5.org.au:2225
mail.example6.com.au:2225...
4,687
Posted By Scott
Hi. Use printf instead of print $...
Hi.

Use printf instead of print


$ awk '{ printf "%d\n", $1/$2*100 }' /tmp/internetusage.txt
22
5,441
Posted By durden_tyler
Maybe something like this ? $ $ $...
Maybe something like this ?


$
$
$ cat f5
$[//]9/6/2010 6:00:00 PM: Normal backup using $[1]$[19]VDR_Backups$[20]$[2] (Execution unit 1)$[//30/%D %.1T: %s using...
5,441
Posted By binlib
sed -e:o -e's/$\[[^][]*\]//g' -eto
sed -e:o -e's/$\[[^][]*\]//g' -eto
2,238
Posted By Franklin52
Try this: awk ' $4 == "Normal" && $5 ==...
Try this:
awk '
$4 == "Normal" && $5 == "backup"{f=1; c++}
f{print > "/tmp/logfile" c ".txt"}
$4 ~ /Duration/{f=0}
' /tmp/backuplog.txt
Showing results 1 to 12 of 12

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