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

  • Home
  • SEARCH
  • 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 8680099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T21:09:29+00:00 2026-06-12T21:09:29+00:00

Thank you very much in advance for helping! I’d like to transform this variable:

  • 0

Thank you very much in advance for helping!

I’d like to transform this variable:

win_path=/cygdrive/g/virtual_tours/.archives/vt_template_8_0_15/test_directory_2/panos

into:

win_path_dir=G:/virtual_tours/.archives/vt_template_8_0_15/test_directory_2/panos

This in what I have so far, but it doesn’t work.
When I echo $win_path it returns nothing (black, empty space)

$win_path=$(echo $i | sed -e 's/\/cygdrive\/g/G\:/g')

Cheers!

  • 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-12T21:09:31+00:00Added an answer on June 12, 2026 at 9:09 pm

    Your approach is good, there is only a little typo:

    win_path=$(echo $i | sed -e 's/\/cygdrive\/g/G\:/g')
    

    Do not write $win_path (no $) when defining the value of variable win_path.
    When you write $win_path the shell expands the value of the variable.

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

Sidebar

Related Questions

Thank you very much in advance for helping! I have this variables: scene1=lounge scene2=bedroom
Thank you very much in advance for helping! I have this code in bash:
Thank you very much in advance. I'd like to know if anyone knows about
Thank you very much in advance for helping! I have a directory with some
Thank you very much in advance for helping! I'm a happy user of Emacs
First of all, thank you very much in advance for any attempt at helping
Thank you very much in advance for reading. I'm programming a web application in
First and foremost, thank you all for reading this and helping, I'm very grateful.
thank you very much in advance for the help. I have to make an
thank you all so very much for helping. It's seemingly such an easy task,

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.