Cygwin help needed! for copying shellscripts


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Cygwin help needed! for copying shellscripts
# 1  
Old 02-10-2009
Cygwin help needed! for copying shellscripts

Hello,
this is not exactly a unix specific question however i am sure someone out there may answer my question. The problem is that i write shellscripts and now i want to convert all these shellscripts to .txt. Is it possible?
or if someone knows how to copy the content of shellscript then also tell me? I went into my home directory in cygwin folder but there if i try to open any shellscript file it opens in notepad in binary format. :-/ so how to convert it into ASCII?
# 2  
Old 02-10-2009
Can't confirm that. Just created a file with some text in it with vim on cygwin and opened it with notepad - looked fine.
# 3  
Old 02-10-2009
Quote:
Originally Posted by salman4u
Hello,
this is not exactly a unix specific question however i am sure someone out there may answer my question. The problem is that i write shellscripts and now i want to convert all these shellscripts to .txt. Is it possible?
or if someone knows how to copy the content of shellscript then also tell me? I went into my home directory in cygwin folder but there if i try to open any shellscript file it opens in notepad in binary format. :-/ so how to convert it into ASCII?
They probably are ASCII, just not Windows. Notepad needs a carriage-return and a linefeed at the end of each line, where UNIX only needs a linefeed. Just open them up in wordpad, it'll understand them.
# 4  
Old 02-10-2009
You are correct Corona688 ! thanks Smilie
with wordpad it's working fine .You're the man! Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

opening new instance of cygwin from withing cygwin

I'm using cygwin on win7, What I would like to do is something like this: cygstart cygwin tail -f /foo/test.log | perl -pe 's/error/\e I know I can start a new instance using either of these: mintty -e ... cygstart tail ... But neither of those open in ANSI mode, so I can't do... (0 Replies)
Discussion started by: Validatorian
0 Replies

2. Shell Programming and Scripting

Help needed in perl; moving or copying the variables

Hi All, I have a perl script blc.pl; i have five variables a,b,c,d and e in this script. Now I want to copy the values of these variables into a data file,say abc.dat.. Can anybody please tell me how to do this? Any help is appreciated.. Thanks in advance (2 Replies)
Discussion started by: puneetkanchi
2 Replies

3. UNIX for Dummies Questions & Answers

Anyone else use Cygwin?

I started to gather some stats from our windows servers through the use of cygwin and sshd :) is anyone else doing this sort of thing? interested in some other indicators I should be checking for... thanks, manny the following is only an example of the type of data I am able to... (4 Replies)
Discussion started by: mr_manny
4 Replies

4. UNIX for Dummies Questions & Answers

cygwin

hi.... i want to set an alias to "ls -lart" permanently. i am using cygwin and in that .bashrc and .bash_profile files are readonly. so please tell me how i can do that? thanks (1 Reply)
Discussion started by: Usha Shastri
1 Replies

5. Shell Programming and Scripting

SFTP through shellscripts

Hi Everybody, I am in urgent need of a solution. I need to carry out SFTP activities through a shell script. I have generated public and private keys as shown below: Shell-Prompt$> ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key... (2 Replies)
Discussion started by: $antaclau$
2 Replies

6. UNIX for Dummies Questions & Answers

Copying files from a remote server to local system with cygwin

Hi. I'm sorry if I get on people's nerves asking this, but I don't really understand how to do this and unfortunately don't have the time to work through it step by step in books, etc. At University, we have a unix server that hosts our files. we each have a login and password to access it. I... (3 Replies)
Discussion started by: patwa
3 Replies

7. UNIX for Advanced & Expert Users

urgent help needed!!in copying files to /tmp at boot time,pls help!

Hi all, I am trying to boot a an OS from RAM...(its a opensolaris based distro) For this i have picked up 2 key lib files that when copied to /tmp and mounted to respective places will do the job.. The sizes of these files combined comes upto 600mb.(i have 2gb ram) Now i have also located the... (0 Replies)
Discussion started by: wrapster
0 Replies

8. Shell Programming and Scripting

Comparison in shellscripts.

This idea for a shellscript I have, is just beyond my reach of knowledge. Basically I have a file that contains a list like so: axis heater water yast The file is called mqm.list. What I want to do is when the shellscript is run, it prompts the user to input data. Say the... (6 Replies)
Discussion started by: syndex
6 Replies

9. UNIX for Dummies Questions & Answers

Reengineering ShellScripts

Hi, I'm new in Unix an ShellScripting and I need a programm that create a sequence diagramm graphically from a shell script. I am just working for 2 weeks in Unix and the Shell. And it would help to understand the whole shellsscripts. Is there a freeware tool, that can create such a thing?... (1 Reply)
Discussion started by: roessrob
1 Replies

10. Shell Programming and Scripting

"SCRIPT" (recording session) from ShellScripts

Hi all, Hope that we are all familiar with the "script" command, which helps us to record the session into any file, until we give "exit". Can anyone help me, how to do this process from a shell script!? I face problem while ending the script using "exit" which comes out of the program. This... (3 Replies)
Discussion started by: mohanprabu
3 Replies
Login or Register to Ask a Question