Sponsored Content
Top Forums UNIX for Dummies Questions & Answers txt file gets messed up during transfer from my Desktop Post 302538926 by lrae on Thursday 14th of July 2011 01:51:57 PM
Old 07-14-2011
So I tried that, and now nothing is being returned. Even when I try to run my script on it, nothing is returned. Can you tell me why this is?
Code:
{xhost}~/home/lrae/file> awk '{ print $0 "\r" }' < filename.txt > filename.txt 
{xhost}~/home/lrae/file> more filename.txt 
{xhost}~/home/lrae/file> cat filename.txt
{xhost}~/home/lrae/file> script.pl filename.txt 
{xhost}~/home/lrae/file>


Last edited by Scott; 07-15-2011 at 02:20 PM.. Reason: Code tags
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Binary txt file received when i use uuencode to send txt file as attachment

Hi, I have already read a lot of posts on sending attachments in unix...but none of them were of help for my problem...so here goes.. i wanna attach a text file and send to a mail id..used the following code : uuencode "$File1" "$File1" ;|mail -s "$Mail_sub" abc@abc.com it works... (2 Replies)
Discussion started by: ash22
2 Replies

2. Shell Programming and Scripting

AWK CSV to TXT format, TXT file not in a correct column format

HI guys, I have created a script to read 1 column in a csv file and then place it in text file. However, when i checked out the text file, it is not in a column format... Example: CSV file contains name,age aa,11 bb,22 cc,33 After using awk to get first column TXT file... (1 Reply)
Discussion started by: mdap
1 Replies

3. Shell Programming and Scripting

command to list .txt and .TXT file

Hi expersts, in my directory i have *.txt and *.TXT and *.TXT.log, *.txt.log I want list only .txt and .TXT files in one command... how to ?? //purple (1 Reply)
Discussion started by: thepurple
1 Replies

4. UNIX for Dummies Questions & Answers

Can't loging because .basrc file messed up

Dear Friends, I have messed up with my .bashrc file (something I have deleted) and now i can't login back to system.. any Idea.. I can do login with other login and password.. but I dont have root password because of security reason... If I ask root then It will take about 4 -5 days to go... (4 Replies)
Discussion started by: umeshjaviya
4 Replies

5. Shell Programming and Scripting

awk append fileA.txt to growing file B.txt

This is appending a column. My question is fairly simple. I have a program generating data in a form like so: 1 20 2 22 3 23 4 12 5 43 For ever iteration I'm generating this data. I have the basic idea with cut -f 2 fileA.txt | paste -d >> FileB.txt ???? I want FileB.txt to grow, and... (4 Replies)
Discussion started by: theawknewbie
4 Replies

6. Windows & DOS: Issues & Discussions

Transfer of zipped folder from windows desktop to UNIX server

Hi all, I'm a newbie to unix. My requirement is to create an automation script which will transfer a zipped folder from my/remote desktop to an unix server. Tools lik WinSCP shouldnt be used. No manual moving. I use putty to connect to server. I couldnt find any help on this topic. Should i use... (3 Replies)
Discussion started by: sherin22
3 Replies

7. Shell Programming and Scripting

Need to append the date | abcddate.txt to the first line of my txt file

I want to add/append the info in the following format to my.txt file. 20130702|abcd20130702.txt FN|SN|DOB I tried the below script but it throws me some exceptions. <#!/bin/sh dt = date '+%y%m%d'members; echo $dt+|+members+$dt; /usr/bin/awk -f BEGIN { FS="|"; OFS="|"; } { print... (6 Replies)
Discussion started by: harik1982
6 Replies

8. Windows & DOS: Issues & Discussions

2 Questions: replace text in txt file, add text to end of txt file

so... Lets assume I have a text file. The text file contains multiple "#" symbols. I want to replace all thos "#"s with a STRING using DOS/Batch I want to add a certain TEXT to the end of each line. How can I do this WITHOUT aid of sed, grep or anything linux related ? (1 Reply)
Discussion started by: pasc
1 Replies

9. Shell Programming and Scripting

Desired output.txt for reading txt file using awk?

Dear all, I have a huge txt file (DATA.txt) with the following content . From this txt file, I want the following output using some shell script. Any help is greatly appreciated. Greetings, emily DATA.txt (snippet of the huge text file) 407202849... (2 Replies)
Discussion started by: emily
2 Replies

10. HP-UX

Ignite-UX INDEX file messed up, how to recreate?

OK, so I just messed myself up. Thinking the /var/opt/ignite/data/INDEX files was static, I manually edited the file and added 2 more OS's to it. During an Install it only showed the first OS (started with 11.31, 3 versions then added a 11.23, and a 11.11 stanza's). The 11.23 and 11.11 never... (2 Replies)
Discussion started by: mrmurdock
2 Replies
GOPEN(1)						       GNUstep System Manual							  GOPEN(1)

NAME
gopen - open files SYNOPSIS
gopen [-a application] [-o] [-p] [-NXHost hostname] [filename] DESCRIPTION
The gopen command allows you open a file (or directory) as if you had double clicked the object's icon. It is possible to specify one or more filenames which are interpreted relative to the current working directory. By default, gopen will open filename with the application currently assigned to the file's extension. But by specifing the -a flag on the command line you can tell gopen to open the file with another application. You can also directly print a file without ( -p ) or with ( -p -o ) opening it. As with most other GNUstep software, it is easily possible to attach the process to a remote window server using the -NXHost flag. OPTIONS
-a application use application to open filename -o open filename (may be used in conjunction with -p ). -p print filename instead of opening. -NXHost hostname attach to remote window server on hostname EXAMPLES
Open all files with a .txt extension in the current directory: gopen *.txt To open a source file in CodeEditor (instead of the current default application), type: gopen -a CodeEditor MySourceFile.m To print the .plan file in your home folder, use the -p flag: gopen -p ~/.plan BUGS
Using the -a application argument, gopen allows you to open any kind of file with any application you want. This does, however, not work with applications employing the NSDocument architecture as they will only receive filenames whose types the application has registered. To circumvent this limitation, applications may advertise their ability to open all kinds of files through the "*" filetype. When gopen is used with only the -a application argument but no filename present, the application is simply launched without opening a specific file. SEE ALSO
GNUstep(7), openapp(1) HISTORY
gopen was written November 2001. This manual page was first written July 2003. AUTHORS
gopen was written by Gregory Casamento <greg_casamento@yahoo.com>. This man page was written by Martin Brecher <martin@mb-itconsulting.com>. GNUstep August 2003 GOPEN(1)
All times are GMT -4. The time now is 03:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy