Search Results

Search: Posts Made By: runmeat6
2
1,576
Posted By runmeat6
Starting with the above code, it needs to go a...
Starting with the above code, it needs to go a little bit further to yield the entirety of the desired output. Perhapsawk -F'|' '{print $1 "|" $2 "|" $3 "|" substr($4,0,1) "\n" substr($4,2) "|" $5...
9,428
Posted By runmeat6
The explanation was a little bit off in that it...
The explanation was a little bit off in that it re-splits the first part, b[0], into array a. Otherwise, another nice solution based on the presumed separation in the file.
4,983
Posted By runmeat6
It just happened again while piping to sort and...
It just happened again while piping to sort and zsh reported that it did not recognize the command sort, because it looked like " sort" to the shell. Has no one else using zsh 3.0.8 experienced this?...
9,428
Posted By runmeat6
OK, I have found that some versions of awk will...
OK, I have found that some versions of awk will work with what Shamrock provided and what was originally provided by Rubin will work with those same versions of awk and additionally nawk.
9,428
Posted By runmeat6
I do not believe awk will accept a range (e.g....
I do not believe awk will accept a range (e.g. "{4,}") because that was what I originally tried. In fact I believe awk will only accept zero or more ("*") or one or more ("+") and no matter what...
9,428
Posted By runmeat6
Dear vinsara: I have tried to help, but I...
Dear vinsara:

I have tried to help, but I think it is an impossible task to separate the second from the third field if the spacing is not as you originally showed it in code. I provide an...
9,428
Posted By runmeat6
If the format does not include the spaces as...
If the format does not include the spaces as originally posted, then all bets are off to be able to separate the last two fields. I tried my previous post under other conditions and it did not work...
9,428
Posted By runmeat6
Perhaps awk -F' +'...
Perhaps awk -F' +' '{printf"%s\n%s\n%s\n\n",$1,$2,$3}' file but this is still assuming the original code format and not the most recent example.
9,428
Posted By runmeat6
I first tried something like Rubin, but I could...
I first tried something like Rubin, but I could not get it to work, but his does work, so I would go with that over my own post.
9,428
Posted By runmeat6
Maybe sed s/\ \ \ \ /:/g filename | awk -F:...
Maybe
sed s/\ \ \ \ /:/g filename | awk -F: '{print $1}'
sed s/\ \ \ \ /:/g filename | awk -F: '{print $2}'
sed s/\ \ \ \ /:/g filename | awk -F: '{print $4}'
might work assuming the spacing is...
4,983
Posted By runmeat6
non-breaking space question
Might anyone know how to make a nbsp (160|0xA0) character? I am using a Dell Latitude D620 running Windows XP and then starting Exceed 9.0 defaulting to native window emulation for my X (us.kbf...
Showing results 1 to 11 of 11

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