Search Results

Search: Posts Made By: unilover
12,308
Posted By unilover
The dot-command (e.g.: . myscript.sh) means read...
The dot-command (e.g.: . myscript.sh) means read in the file in the current shell and execute it line-by-line

On the other hand, executing any of the following:

sh myscript.sh
ksh myscript.sh...
3,461
Posted By unilover
Also, remove the following: FS=" *: *" q="'"...
Also, remove the following:

FS=" *: *" q="'"

from chk.awk and run your command as:
awk -f chk.awk FS=" *: *" q="'" qqq
3,461
Posted By unilover
Radoulov has given you the complete awk command!!...
Radoulov has given you the complete awk command!! (you should be more observent)

In your form of execution, take out the awk and the single quote from the begin & end of the command in your...
3,202
Posted By unilover
For start, you need to have the following three...
For start, you need to have the following three commands available on your system:

1. text-to-ps Convertor
2. ps-to-pdf convertor
3. ftp

I know the last one is always available by default....
55,197
Posted By unilover
Also, per System Shock's clever solution, you can...
Also, per System Shock's clever solution, you can replace my suggested code:
eval "date '+MM=%m'"
[ -f $HOME/TestAutomate.M$MM ] && exit
rm -f $HOME/TestAutomate.M??; touch $HOME/TestAutomate.M$MM...
55,197
Posted By unilover
Or rather just schedule it to run on Wednesdays...
Or rather just schedule it to run on Wednesdays by putting a 3 in the fifth column as:
50 23 * * 3 /usr/sandeep/TestAutomate.sh
17,812
Posted By unilover
I would say you don't need to schedule it for...
I would say you don't need to schedule it for every day and test to run it on Sundays only. Just schedule it to run on Sundays (i.e. the fifth column being ZERO) as:
# Monthly reboot scheduled every...
8,866
Posted By unilover
OK, looks like era is righ. Please try this: ...
OK, looks like era is righ. Please try this:
echo "{`sed 's=\(.*\) \(.*\)=if($4~/^\2/)print $0\" \1\"=' country-codes.txt`}" >awk_4
head awk_4
tail awk_4
awk -f awk_4 phonelines.txt >first_added...
7,414
Posted By unilover
Maybe if you append the following to your...
Maybe if you append the following to your command-line:
|sed -e "s/''2/'2/g" -e "s/'',/',/g"
17,812
Posted By unilover
Clever! And maybe you only need just the...
Clever!

And maybe you only need just the following one line at the start of your script
[[ $(date '+%e') -gt 7 ]] && exit
8,866
Posted By unilover
This is very strange!! your command is exactly as...
This is very strange!! your command is exactly as it should be!!

Try the following and let me have the result:

uname -a
echo "{$(sed 's=\(.*\) \(.*\)=if($4~/^\2/)print $0\" \1\"='...
8,866
Posted By unilover
I believe you should have made a mistake in...
I believe you should have made a mistake in typing. Please copy what you have typed and paste it here so that I can see where the mistake is.
3,939
Posted By unilover
From what I understood, you have a file...
From what I understood, you have a file containing lines like:
aaa111
bbb111
ccc111
yyy111
yyy222
yyy333
yyy444
yyy555
yyy666
and then you want to echo "not remove" in front of the lines...
10,439
Posted By unilover
Try: sed 's=\(......\)\(..\)\(..\)\(..\)=\1...
Try:
sed 's=\(......\)\(..\)\(..\)\(..\)=\1 \4/\2/\3 =' myfile >newfile
6,901
Posted By unilover
Be very careful whenever and wherever you use...
Be very careful whenever and wherever you use ">myfile" at the end of any command, the content of "myfile" will be cleared completely.

So, doing:

grep -v "bla bla bla" myfile >myfile

will...
6,901
Posted By unilover
Try: grep -v "Permission Denied"...
Try:

grep -v "Permission Denied" today.txt
2,499
Posted By unilover
First try changing yourself with someone who...
First try changing yourself with someone who knows unix-shell before writing shell-scripts or at least someone who learns first and then writes code

Then, maybe change "$path" to `cat $path` in...
7,329
Posted By unilover
Change "-c8-40" to "-c17-40" !!! Don't you...
Change "-c8-40" to "-c17-40" !!!

Don't you ever want to know how UNIX-Commands work?
4,260
Posted By unilover
Sorry! "zcat|touch" preou* was in my test!! ...
Sorry! "zcat|touch" preou* was in my test!!

You should have "begin|end" mymail.txt
;)
4,260
Posted By unilover
try this: egrep -n 'zcat|touch' preou*|\ awk...
try this:
egrep -n 'zcat|touch' preou*|\
awk -F: '{print $1}'|\
paste -sd ",\n" -|\
sed 's=\(.*\)=sed -n "\1p" mymail | uudecode='|\
sh

You can run each consequtive piped-command to see what...
7,414
Posted By unilover
Try: sed "s/,\(200[0-9]-..-.....
Try:
sed "s/,\(200[0-9]-..-.. ..:..:..\)/,'\1'/" mysqldump
2,116
Posted By unilover
For the Form-Feed character (i.e. "^L") you have...
For the Form-Feed character (i.e. "^L") you have to key [Ctrl]V followed by [Ctrl]L
2,116
Posted By unilover
Try:sed 's/Page /^LPage /' file.txt...
Try:sed 's/Page /^LPage /' file.txt >newfile.txt
12,881
Posted By unilover
if your inputfile contains ONLY EBCDIC...
if your inputfile contains ONLY EBCDIC characters, dd in=inputfile out=outputfile conv=ascii will do the job.

If you're not getting what you expect, your data is either totally or partially NOT...
2,116
Posted By unilover
What do you mean? Where in the file? what match?
What do you mean? Where in the file? what match?
Showing results 1 to 25 of 66

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