Quote:
In addition to the link on SED, also go here: http://tldp.org Get the Bash Guide for Beginners by Machtelt Garrels Note, I've been assuming Linux, but you did say Unix---what computers are you using and and what Operating system is installed/ |
Maybe use cat instead of ls? Should read out the contents. Grep would be the way to go though.
|
I relly did not undertastand what you are trying to say here. Is anyone able to see the images that the OP is posted?
If you let us know what exactly you see on the computer we can help you. Do not worry we all start at some point and thoes are the times (mostly) when we do not have an idea of what we are doing. |
Quote:
'nother hint: You're not concerned with the filename---you need to work on the contents. EXCEPT---The file contains filenames!! No matter---you still do not need to set any variables. |
Quote:
I stated that this can be done with a one-line SED statement---does anyone disagree? |
I decided on using SED, thanks for the help. ill get back to you and let you know how it goes.
|
Is there a sed command that would get the name of the image?
|
Not just Grep, maybe you need to get off those recreational chemicals you are offering me. How can Grep parse files. I said it would be included in the code, not gona give the whole code. He won't learn anything... I could be wrong but that's the linux learning curve.
|
Quote:
(I'm assuming that you mean look for "IMAGE1", "IMAGE2", etc. in the file.) |
yo what up. I just got the first half of it.
so i have: image1.txt image2.txt image3.txt now i just need to use sed to extract the resolution. thanks for all of your help. ---------- Post added 06-29-12 at 09:43 AM ---------- i figued that it would be easier to use the actual file name rather than the text whithin the file. |
You're on a roll!!----It seems you learn quickly. Please keep us updated and--as soon as you have any code--post it here.
|
does anybody have the sed/awk command that can extract the resolution
|
oh, btw i used echo $x to get the file names instead of my variable method because I had already set it. I still don't know how to get the resolutions though.
|
i hate to just give the answer like this but given that he stated hes just learning i feel like i could be helping by showing an example...
theres probably a shorter way to do this but using sed is your best bet and this is what i came up with... Quote:
and if not then read some sed tutorials and get a good understanding of the syntax |
can you explain your answer because I want to know the script that im sending.
|
All times are GMT -5. The time now is 04:14 PM. |