Search Results

Search: Posts Made By: Kokoos
1,687
Posted By Kokoos
i know i could make it like this A B C D E ......
i know i could make it like this A B C D E ... but if my file will have 1000 columns and i will want to change column nr 500 ? If i could use ,,for loop" to avoid writing A B C D ... it would be...
1,687
Posted By Kokoos
I really like this method (very simple): ...
I really like this method (very simple):

while read A B REST; do echo -n $A | tr '0-9' 'A-J'; echo " " $B; done < file
BBBC 2.5
CCCC 3.0
AFFF 9.0

but if my file would like like:

2121 ...
1,687
Posted By Kokoos
omg... it was just random example but if u want...
omg... it was just random example but if u want here you go...


MY FILE:
1112 2.5
2222 3.0
0555 9.0

OUTPUT:
BBBC 2.5
DDDD 3.0
AFFF 9.0

btw this i what i was looking for... :
...
1,687
Posted By Kokoos
yes but u changed 2nd column too and its not...
yes but u changed 2nd column too and its not good. I want to change only 1st column example display should be:
AABDA 2.5
Please use CODE tags for sample input and output as well as for sample...
1,687
Posted By Kokoos
Multiple beginner's problems
Hello!
I started how to write scripts (basic one) in bash. I would like to post my problems here (i will edit topic if i will have any news problems)

1] i have a txt file like:
32323 4.2...
Showing results 1 to 5 of 5

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