Search Results

Search: Posts Made By: edehont
4,127
Posted By edehont
You do a read a in your shell. Then you use $a in...
You do a read a in your shell. Then you use $a in awk, but that won't work because awk knows nothing about shell variables.

When you invoke awk you can however pass variables to it:

awk -v a=$a...
1,396
Posted By edehont
Ftp uses ASCII-transfer mode by default. A zipped...
Ftp uses ASCII-transfer mode by default. A zipped tar is binary.
Issue the command 'binary' to tell ftp to treat your upload as such.
1,383
Posted By edehont
When using single quotes, the shell takes your *...
When using single quotes, the shell takes your * as a literal value.

So, don't use single quotes. (In this case.)

Next, use cat to conCATenate files:

cat...
1,826
Posted By edehont
The options to your sendmail command are wrong! ...
The options to your sendmail command are wrong!

Send some emails to yourself using cat <file>|sendmail <options> until you understand how it works.

Do you even have the command 'sendmail' on...
3,281
Posted By edehont
Why not split the whole file in one go? With this...
Why not split the whole file in one go? With this line of awk, you split the whole file into files with filenames like 00000000-00001000.exp for the record range below 1000, 00001000-00002000.exp for...
1,853
Posted By edehont
If you want (slash need) to stick to sed and bc,...
If you want (slash need) to stick to sed and bc, try this:

sed 's/^\(.*:\)\([0-9]*\),*\([0-9]*\):\([0-9]*\),\([0-9]*\)/print \"\1\2,\3:\4,\5:\",\4\.\5-\2\.\3,\"\n\"/' beurs.txt|bc|sed...
1,853
Posted By edehont
To be honest, I've hardly ever worked with bc...
To be honest, I've hardly ever worked with bc before. I just took a glimpse at the man page and came up with this idea. Since we are mixing strings and expressions, the print command seemed the way...
Showing results 1 to 7 of 7

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