Search Results

Search: Posts Made By: jkandel
1,989
Posted By jkandel
Converting 2 or more spaces to a single tab
I'm new to bash and want to know a simple sed, awk, or grep script that will find all instances of 2 or more spaces and convert them to a single tab. Thanks for the help in advance.
4,805
Posted By jkandel
Thanks rake. I think this will work for my...
Thanks rake. I think this will work for my purposes. I'll have to digest this. And what does %d mean? Thanks for all the replies.

awk '{printf("%d,%d,%d,\"%d %d\",\"%d...
4,805
Posted By jkandel
Converting spaces to csv
I'm new to shell scripting and I have a file with positional columns. The rows look like this:

222 3333 44444 55 55 55 55 5555 59999
222 3333 44444 55 55 55 55 5555 ...
4,495
Posted By jkandel
Thanks for both suggestions. These will get me on...
Thanks for both suggestions. These will get me on the path once I figure out what they're doing. I'll deconstruct with a new sed awk book I've ordered.
4,495
Posted By jkandel
format
I want the output to look like this
Firstname\tLastname\tAge\tCitytDollar Amount\tSynopsis\n
xxxx\txxx \txx\txx\t$n,nnn\txxxxxxxxxxxxxx

And, I apologize, but I'm looking for a starting...
4,495
Posted By jkandel
using awk to format text
I'm new to awk and would appreciate a jump start.

I've got a text doc of people with first and last names, ages, home cities, and a phrase about the individual. I want to parse the text into...
Showing results 1 to 6 of 6

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