Search Results

Search: Posts Made By: angie1234
31,667
Posted By Corona688
How did you transfer the file? FTP? Be sure to...
How did you transfer the file? FTP? Be sure to give the 'binary' command before transferring over FTP, or things will be corrupted like this.
2,414
Posted By Scrutinizer
Nr. 1 uses a double quote as the field separator...
Nr. 1 uses a double quote as the field separator and then deletes any non-digit from the start of field 9 and then prints field 9

Nr.2 uses any number of spaces as field separator and then prints...
2,414
Posted By methyl
Or back to using "tr". a=`echo "$line" | cut...
Or back to using "tr".
a=`echo "$line" | cut -f9 -d '"' | cut -c32-41 | tr '$' ' '`
16,788
Posted By Corona688
In what manner does it "not work"? You don't...
In what manner does it "not work"?

You don't need to initialize the variables to anything, especially since that may end up making them longer than you want.

%10f won't do what you want either....
3,692
Posted By Scrutinizer
Try: echo "$line" ...
Try:
echo "$line" ...
10,669
Posted By balajesuri
if [ `echo $a | grep "\-$"` ]; then a="-${a%?}";...
if [ `echo $a | grep "\-$"` ]; then a="-${a%?}"; fi
4,889
Posted By Corona688
Provisionally reopened on request since it may...
Provisionally reopened on request since it may not actually be homework, the data is intentionally simplified and obscured compared to the real data.
Showing results 1 to 7 of 7

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