Search Results

Search: Posts Made By: sulti
9,481
Posted By sulti
| cut -b-9 No need for delimiters if Youre...
| cut -b-9
No need for delimiters if Youre writing bytes (chars).
2,089
Posted By sulti
alias rm='rm -i' Add it to Your /etc/profile
alias rm='rm -i'
Add it to Your /etc/profile
2,107
Posted By sulti
sed "s/.*@//g" inputfile
sed "s/.*@//g" inputfile
1,530
Posted By sulti
#!/bin/bash echo "select 'rm -rf '||name from...
#!/bin/bash
echo "select 'rm -rf '||name from v\$datafile;" | sqlplus "/ as sysdba" | grep "^rm -rf" > file1
echo "select 'rm -rf '||name from v\$controlfile;" | sqlplus "/ as sysdba" | grep "^rm...
6,722
Posted By sulti
This should do: #!/bin/bash count=`find...
This should do:

#!/bin/bash

count=`find -name "*.dat" | wc -l`
iterations=$(($count/1000))

for j in $(seq $iterations); do
dir="dir$j"
mkdir $dir
mv $j???.dat...
2,931
Posted By sulti
sed -n '/file:/s/^.*file:\/\/\(.*dat\).*(score...
sed -n '/file:/s/^.*file:\/\/\(.*dat\).*(score \(.*\),.*/\1 \2/p' FILENAME
4,853
Posted By sulti
You're almost there... small changes: change...
You're almost there... small changes:
change case 1) to:
echo -n "Enter a word: "
read word
echo -n "Enter the meaning: "
read meaning
echo "$word means $meaning" >>...
1,879
Posted By sulti
Above is true, when Your number is in this...
Above is true, when Your number is in this format:
0,1
It's not working when You have dot in number (like in bc standard):
0.1
1,879
Posted By sulti
Try this: if [ `echo "$1 > $2" | bc -l` -eq 1...
Try this:
if [ `echo "$1 > $2" | bc -l` -eq 1 -a `echo "$1 < $3" | bc -l` -eq 1 ]; then
echo OK
else
echo False
fi
1,596
Posted By sulti
Most probably - script is trying to make...
Most probably - script is trying to make directory somewhere, where it has no permissions to do that.
Try adding
cd /home/user01/exercise
before mkdir.
And change, just for test, cron time to...
2,231
Posted By sulti
Why did You use authorized_keys2 file on server...
Why did You use authorized_keys2 file on server side? Default sshd setting uses authorized_keys (without trailing "2"). Maybe that's the problem...
Showing results 1 to 11 of 11

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