Search Results

Search: Posts Made By: Dahu
4,408
Posted By Dahu
Sorry for misunderstanding you. Try this : grep...
Sorry for misunderstanding you. Try this :
grep -v "UDP flood" -A1 filename | grep -vE '^--$'
1,607
Posted By Dahu
You misunderstood this line. It runs what's...
You misunderstood this line. It runs what's between do and done, as long as $n is lower or equal than the first argument (i.e. $1) of the script.
8,686
Posted By Dahu
Try this one when sending your mail: ( echo...
Try this one when sending your mail:
( echo "${message}"; eval ${attachmentString} ) | mailx -s "${subject}" "${email}"
2,545
Posted By Dahu
Is this sufficient ? ll file*110328Z
Is this sufficient ?
ll file*110328Z
2,843
Posted By Dahu
Here is a script solution for the example,...
Here is a script solution for the example, assuming the file with the data is named file.tmp, and the file separator is a tab
#!/bin/bash
echo -e " \ta\tb\tc\td"
for i in $(tail -n+2 file.tmp | tr...
1,886
Posted By Dahu
sed 's/^.*heading.*>\(.*\)<.*/<span...
sed 's/^.*heading.*>\(.*\)<.*/<span class="hlred">\1<\/span><br \/>/g' yourfile.htmlThis will work only if your DIV are alone on the line.

The pattern \(.*\) is used to capture an element that...
1,602
Posted By Dahu
foreach f ( example "good example") cat $n |...
foreach f ( example "good example")
cat $n | grep "$f"


Always quote your strings if you have spaces inside ...
3,796
Posted By Dahu
This will not work as you didn't provide the path...
This will not work as you didn't provide the path on which the find command willl look for the word (but you probably found this yourself as you propose another solution)



This will be better...
2,047
Posted By Dahu
Try this : #!/bin/ksh word='zobo' num=3 ...
Try this :
#!/bin/ksh
word='zobo'
num=3
upper=0
while getopts n:w:u option $*
do
case $option in
w) word=$OPTARG ;;
n) num=$OPTARG ;;
u) upper=1 ;;
esac
done
echo $word...
11,602
Posted By Dahu
The output of top is formatted. When trying to...
The output of top is formatted.
When trying to reproduce your problem your top -n 1 -u mysql | grep mysqld | awk '{print $1}' command returns an empty strings. So that's why your kill asks for a...
Showing results 1 to 10 of 10

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