Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8640239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:13:52+00:00 2026-06-12T11:13:52+00:00

The command: awk –f cs2ss.awk < dataset.csv > dataset.ss should be using this program:

  • 0

The command:

awk –f cs2ss.awk < dataset.csv > dataset.ss

should be using this program:

BEGIN  {FS = ",";}
{
  for(i=1;i<=NF;i++) {printf("%s ", $i);}
  printf("\n");
}

To take all of the commas out of dataset.csv. But it only creates the empty file dataset.ss. I’ve made sure all files being used are .txt and not rtf (using a MacBook). What am I doing wrong?

EDIT: A screenshot of the input file –

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T11:13:54+00:00Added an answer on June 12, 2026 at 11:13 am

    The code works. You can test it by simply running

    awk –f cs2ss.awk
    

    And typing in sample lines of input. So you must be doing something else wrong and that thing is not apparent from here.

    Things to try….

    Run

    awk –f cs2ss.awk < dataset.csv
    

    If you get non-empty output to the screen, then there’s something odd about the destination file or filesystem. If you get blank output to screen, there’s a problem with the input file.

    If it’s the input file, what does

    file dataset.csv
    

    tell you?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please help this problem. I have this command: awk 'BEGIN {printf %-15s, Date of
I'm trying to make this command: sed bla bla filename | awk '{printf %s
when I am executing this on the command line: awk 'BEGIN{OFS=FS=,}$3~/^353/{print}' axeM10_20110510100219_59.DAT_353 >log it
I have this command: awk 'BEGIN {system (mplayer mms :// xx.xx.xx -dumpstream -dumpfile xxx.wmv)}'
I have this command: $ awk 'BEGIN{c=1; for(i=NF; i<9; i++) print c++, _}' 1
I have the following awk command which works perfectly: awk 'BEGIN { ORS =
I'm using the following awk command in an expect script to get the gateway
I have a small piece of c code which should run an awk command
Can someone help me out here as I can't get my awk command to
I want to add this awk command on my script but keep getting error.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.