Search Results

Search: Posts Made By: Dahu
10,264
Posted By Dahu
I really like this one :b:
I really like this one :b:
11,641
Posted By Dahu
sed 's:<a href="\(.*\)">.*</a>:\1:'...
sed 's:<a href="\(.*\)">.*</a>:\1:' url_file
4,438
Posted By Dahu
Sorry for misunderstanding you. Try this : grep...
Sorry for misunderstanding you. Try this :
grep -v "UDP flood" -A1 filename | grep -vE '^--$'
4,438
Posted By Dahu
grep -An print n lines After the line found by...
grep -An print n lines After the line found by grep
grep -Bn print n lines Before the line found by grep
grep -Cn print n lines of Context from the line found by grep (n before and n after)
2,402
Posted By Dahu
I'm sorry but your script and your questions are...
I'm sorry but your script and your questions are a little difficult to understand :/
Furthermore I don't have access to your oracle database to reproduce your test (We don't know what's inside your...
2,402
Posted By Dahu
I should have read a little more attentively ......
I should have read a little more attentively ... You could try this:
su - oracle -c "$(eval echo "exp user/pass@localdb file=/oracle/oradata/backup/exp_cal_hist_$var1_$var2_`date...
1,712
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.
2,402
Posted By Dahu
$1 and $2 are arguments for your script. How do...
$1 and $2 are arguments for your script. How do you call your script ?
6,014
Posted By Dahu
Could this help you ? TZ=GMT date -d '20010101...
Could this help you ?
TZ=GMT date -d '20010101 01:01:01 -0102'It takes the date 20010101 01:01:01 and ADD 1 hour and 2 minutes. It's more a hack but it can be used for simple date manipulation.
6,014
Posted By Dahu
It could be better with not using the export...
It could be better with not using the export command:
# TZ=GMT date
Tue Apr 5 13:34:27 GMT 2011
# TZ=GMT+1 date
Tue Apr 5 12:34:35 GMT 2011
# TZ=GMT-1 date
Tue Apr 5 14:34:38 GMT 2011

I'm...
5,767
Posted By Dahu
curl <url>
curl <url>
8,717
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}"
11,347
Posted By Dahu
Use ';' instead of ',' in your csv file. In your...
Use ';' instead of ',' in your csv file. In your locale the comma is the decimal separator and Excel can't use it as a field separator.
19,828
Posted By Dahu
Try this: date +'%d %b %Y %H:%M:%S' -d...
Try this:
date +'%d %b %Y %H:%M:%S' -d "$year$month$day $hour:$min:$sec"
2,550
Posted By Dahu
Is this sufficient ? ll file*110328Z
Is this sufficient ?
ll file*110328Z
1,929
Posted By Dahu
Try this: tr '\n' ' ' < filename | sed -e...
Try this:
tr '\n' ' ' < filename | sed -e 's/;/;\n/g' -e 's/[[:blank:]][[:blank:]]*/ /g'
4,835
Posted By Dahu
You're right, that why I said untested ;), I...
You're right, that why I said untested ;), I usually test my scripts before posting but this time I was in an hurry
4,835
Posted By Dahu
Here is an untested solution: for file $(ls...
Here is an untested solution:

for file $(ls Folder1)
do
ls Folder2/$file Folder3/$file* 1>/dev/null 2>&1
[ $? -eq 0 ] || cp Folder1/$file Folder2/$file
done
1,011
Posted By Dahu
getopts stop analyzing the arguments at the first...
getopts stop analyzing the arguments at the first one it doesn't recognize, so you need to give him only the optional arguments. This can be done with a shift.


arg1=$1
arg2=$2
shift 2
while...
1,844
Posted By Dahu
if A1 is alone on the line you can use grep...
if A1 is alone on the line you can use grep "^A1$"if A1 may be mixed with other data grep -w "A1"
3,759
Posted By Dahu
This should do the trick in one grep command ...
This should do the trick in one grep command
word="posted"
grep -E "^[^:]*[02468]:.*${word}$" yourfile.txt
But as Franklin52 stated, if this is part of an home assignment you should have posted it...
1,347
Posted By Dahu
Did you even try ? wget...
Did you even try ? wget ****.com/content.php?file=movie.wmv
3,190
Posted By Dahu
The error may come from your actual code and not...
The error may come from your actual code and not the code you included.
Please post the complete code (specifically around line 43)
2,976
Posted By Dahu
A little enchancement of cero's bashscript ...
A little enchancement of cero's bashscript
#!/bin/bash
wc -w Article*.txt | head -n-1 | while read WORDS FILE
do
[ $WORDS -le 400 ] && mv $FILE /path/to/new/folder
done
The script will not...
24,575
Posted By Dahu
If you have a single space in your empty lines,...
If you have a single space in your empty lines, your command won't work.
grep -v "^[[:blank:]]*$" filename > newfilename will remove lines with only blank characters
Showing results 1 to 25 of 58

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