Search Results

Search: Posts Made By: One_2_three
2,692
Posted By One_2_three
Hi. Sorry. i left out my declaration. i have...
Hi. Sorry. i left out my declaration. i have edited my code posted already.
2,692
Posted By One_2_three
Hi. This is what i did. declare -rx...
Hi. This is what i did.


declare -rx file="alphanum.txt
declare -i alpha1
declare -i alpha2
declare -i num1
declare -i num2

while IFS=: read num1 num2 alpha1 alpha2 junk; do
printf...
2,692
Posted By One_2_three
Hi. its bash that im using. the error is still...
Hi. its bash that im using. the error is still the same after changing my code. the error seems to happen when i start reading the 1st line.

edit: Hi scott. May i know what do i do with the code...
2,692
Posted By One_2_three
Thanks for your reply. Sorry for the mistake as i...
Thanks for your reply. Sorry for the mistake as i typed it out instead of copying. $file was set already in my program. i get an error syntax error for my while line when i tried your code. it says...
2,692
Posted By One_2_three
Report printing
Hi. i am trying to print the contents of my text file with delimiter : separating them.

6:15:ABC ABD:ABB ABE:
2:20:AEE ABH:ACC AAA:

i have completed my header for the report but i am having...
1,855
Posted By One_2_three
Thanks alot. i got what i needed.
Thanks alot. i got what i needed.
1,855
Posted By One_2_three
thank you very much. i have 1 more question. ...
thank you very much. i have 1 more question.

i am actually trying to update the file with matching pattern. the pattern will be unique so there will always be 1 pattern.

$ sed...
1,855
Posted By One_2_three
Retrieving line number from grep
Hi. im trying to retrieve the line number from grep. i have 1 part of my code here.

grep -n $tgt file.txt | cut -f 1 -d ":"

when i do not cut the value i have is 12:aaa:abc:aaa:aaa:aaa
how...
Showing results 1 to 8 of 8

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