Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Cygwin help needed! for copying shellscripts Post 302286079 by Corona688 on Tuesday 10th of February 2009 09:48:50 AM
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.
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
DGR2FILE(1)							  DGR executables						       DGR2FILE(1)

NAME
dgr2file - DGR reception test program SYNOPSIS
dgr2file DESCRIPTION
dgr2file uses DGR to receive multiple copies of the text of a file transmitted by file2dgr, writing each copy of the file to the current working directory. The name of each file written by dgr2file is file_copy_cycleNbr, where cycleNbr is initially zero and is increased by 1 every time dgr2file closes the file it is currently writing and opens a new one. Upon receiving a DGR datagram from file2dgr, dgr2file extracts the content of the datagram (either a line of text from the file that is being transmitted by file2dgr or else an EOF string indicating the end of that file). It appends each extracted line of text to the local copy of that file that dgr2file is currently writing. When the extracted datagram content is an EOF string (the ASCII text "*** End of the file ***"), dgr2file closes the file it is writing, increments cycleNbr, opens a new copy of the file for writing, and prints the message "working on cycle cycleNbr." dgr2file always receives datagrams at port 2101. EXIT STATUS
0 dgr2file has terminated. FILES
No configuration files are needed. ENVIRONMENT
No environment variables apply. DIAGNOSTICS
can't open dgr service Operating system error. Check errtext, correct problem, and rerun. can't open output file Operating system error. Check errtext, correct problem, and rerun. dgr_receive failed Operating system error. Check errtext, correct problem, and rerun. can't write to output file Operating system error. Check errtext, correct problem, and rerun. BUGS
Report bugs to <ion-bugs@korgano.eecs.ohiou.edu> SEE ALSO
file2dgr(1), dgr(3) perl v5.14.2 2012-05-25 DGR2FILE(1)
All times are GMT -4. The time now is 01:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy