Search Results

Search: Posts Made By: jjoves
14,895
Posted By jjoves
THANK YOU VERY MUCH ZB -- now I know how to write...
THANK YOU VERY MUCH ZB -- now I know how to write a script....
14,895
Posted By jjoves
Im not familiar with script writing - but I tried...
Im not familiar with script writing - but I tried to create a file with the following code you had then ran

sed -f script

and nothing happen.

how would I execute those script?

THANKS --...
14,895
Posted By jjoves
need help on sed (replace string without changing filename)
I have awhole bunch of files and I want to edit stringA with stringB without changing the filename.

I have tried the following sed commands:

sed "s/stringA/stringB/g" *

This will print the...
7,397
Posted By jjoves
Ygor the OR character only works on 2 item...
Ygor

the OR character only works on 2 item when using OR

I need to be able to select more than 2 item so I dont have to do it line by line or in this case state by state
....CA..
....WA.....
7,397
Posted By jjoves
Ygor - this is what i came up with so far......
Ygor -

this is what i came up with so far...

awk '/****CA**/ {print $1,"PST",$2,$3,$4}' co | wc

I need the 5th and 6th character to define as either CA or AZ only.
I tried this:
awk...
7,397
Posted By jjoves
Grep for X character on a word
How can I grep for a certain letter that only shows on the 3rd letter or character.

ex:
ASGHDY
SHTYRD
SDTYRD
IGIKGD

I only want the TY part of the 3rd character
so output would only be...
5,270
Posted By jjoves
THANK YOU TO EVERYBODY THAT HELPED -- LEARNED A...
THANK YOU TO EVERYBODY THAT HELPED -- LEARNED A LOT!!!
5,270
Posted By jjoves
YGOR your close to the result that i wanted ...
YGOR your close to the result that i wanted

this is the output of your awk
YRLNCA11-SL1 DMT8a4 13

it should have been
YRLNCA11-SL1 DMT8a4 5 2
YRLNCA11-SL1 DMT8a4 6 11

the first 2 fields...
5,270
Posted By jjoves
Here is an example of my input file: ...
Here is an example of my input file:
===============
PLALCA12-SL2 2 1
PLALCA12-SL2 2 2
PLALCA12-SL2 2 3
PLALCA12-SL2 2 4
PLALCA12-SL2 2 5
PLALCA12-SL2 2 6
PLALCA12-SL2 2 7...
5,270
Posted By jjoves
I think i have to rephrase my question: ...
I think i have to rephrase my question:

Input File
Field1 - Field2 - Field3 - Field4
A - B - C - 1
A - B - C - 2
A - B - C - 3
A - B - C - 4
A - B - C - 5
A - B - D - 1
A - B - D - 2
A -...
5,270
Posted By jjoves
counting lines and showing the output
First time poster -

I have a huge file and i want to sort and compress it to something more readable

Ex:
FUTNCA01-SL1 DMT8a4 5 3
FUTNCA01-SL1 DMT8a4 5 9
FUTNCA01-SL1 DMT8a4 5 21...
Showing results 1 to 11 of 11

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