Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
filping rows to column
Name: gpatel Date: September 13, 2006 at 08:30:28 Pacific OS: UNIX CPU/Ram: 512 Product: SUN
Comment:
All, I have this little nawk script that grab the information i need from a file. here is what my problem is file = 1 1 red 2 3 red 4 5 red using nawak to get all the red nwak '/red/{print$1,$2}' file output = 1 1 2 3 4 5
NOW if i do this
set red_data = `nwak '/red/{print$1,$2}' file`
$echo red_data i get this 1 1 2 3 4 5
i want to change this variable in to look like this 1 2 2 3 4 5 so echo $red_data should look like that. thanks a lot for your help.
Summary: Hi - How can I use awk to take names (i.e. D,Liz W,Frank) listed in one row and display in a column? First and Last Name are seperated by a "," and a space defines each field. Example - Writing a she...
Summary: Hi, I have a text file with the data in rows the data file has specfic pattern of rows I need to convert first 3 lines of rows into columns by doing a pattern search below is an example it would be ap...
Summary: hello, i have these files they all start from Red now in this file i wanted to grep last row and 5th column number and put that in some other file. i am doing this for like 100 files. is there any eas...