Search Results

Search: Posts Made By: leaf
1,890
Posted By leaf
Is there anybody who knows the commands to use to...
Is there anybody who knows the commands to use to keep the original file format after running the script? It changes the position of the blank spaces... I made a research but didn't find anything...
1,890
Posted By leaf
thanks! the only problem now is keeping the...
thanks! the only problem now is keeping the original format of the file, 'cos it seems all messed up!
cheers

L.

---------- Post updated at 05:02 PM ---------- Previous update was at 04:47 PM...
1,890
Posted By leaf
I tried with this if [ $string !=...
I tried with this

if [ $string != $newstring ]; then
((i=i+1))
echo "$i $newstring" >> $BPATH
awk -F : '($10 == 1)' $BPATH
fi
done < $DPATH


but it doesn't work at all..:(
1,890
Posted By leaf
@sk1418 Actually my idea was to read a...
@sk1418
Actually my idea was to read a bidimensional array from the file and then assign the values 0 or 1 according the criterion I wrote before. I'm stuck on the way to 2D arrays in bash scripting...
1,890
Posted By leaf
Thank you both so much. The loop was useless...
Thank you both so much.
The loop was useless indeed.
You used some commands I didn't know yet, such as "while read". I just learnt it.
Now I have to implement this :
beside the column with the...
1,890
Posted By leaf
Numbering, copying and replacing strings
hello everybody there, I'm a new bash shell programmer and I'm dealing with a problem.
To start, I have a file with a number of string lines which may contain a particular string or not. I have to...
Showing results 1 to 6 of 6

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