Search Results

Search: Posts Made By: awk_sed_hello
7,205
Posted By awk_sed_hello
Thanks but the script worked in the ksh etc
The script worked in true unix shells. I have a copy of my script untouched by DOS and it has the same problem. I understand the CR/LF problem maybe the true unix shells deal with CR/LF wheras bash...
7,205
Posted By awk_sed_hello
How come it works if I copy an paste the entire script to the command line
sed -e is not required if the arguments following the command are valid arguments. But for grins I tried it on the command line it works as a stand alone command in the script file name is not found....
7,205
Posted By awk_sed_hello
I need to understand the differences between the bash shell and the Bourne shell
I do not claim to be an expert, but I have done things with scripts that whole teams of folks have said can not be done. Of course they should have said we do not have the intestinal fortitude to...
38,736
Posted By awk_sed_hello
Thanks, TonyFullerMalv tr did the trick
Thanks a bunch TonyFullerMalv translate (tr) worked like a charm:)
I know that \012 is CR what is ' ' ' ? single quoted spaces?

I needed to redirect the STD OUT to a new file, as the file...
38,736
Posted By awk_sed_hello
use sed to replace whitespace with a carriage return
Greetings

I need to replace "whitespace" in a file with the newline character aka carriage return

My command is either wrong or not interpreted properly by me shell


sed s/" "/\\n" "/g...
7,244
Posted By awk_sed_hello
Keep it simple
I need to multiply $1 and $2 by 10 using 2 simple awk statements

awk '$1*10' tp3 > tp4
awk '$2*10' tp4 > tp5

I need this ...
48.00 -4610.20 J1.3 PREFERRED;

to become this ...

480...
7,244
Posted By awk_sed_hello
use a mathematical expression in an awk statement
I have some geometric data (X Y) that is in the wrong scale. My raw data is in mills but it needs to be in tenths of a mil

I am pretty familiar with awk and sed

I want to use awk to divide $1...
Showing results 1 to 7 of 7

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