07-02-2008
> I've spent all of my career on windows boxes and maybe 30 secs here an there with unix.
First of all: Congratulations!
I am in an opposite situation: changed work recently and moved to windows-based environment. I feel like somone cut off my hands, you'll probably understand me very well :-)
Anyway let's get down to business.
Regarding all flavours of text files (including html files of course) there is a mojor difference that you should be aware off:
the famous "newline" character.
Windows writes newlines as CRLF (two characters: carriage-return and line-feed) while UNIX writes newlines simply as LF.
So when'll you copy files from windows system expect to see an extra character at the end of line (often seen as "^M").
The good news: there are 1001 ways to remove that unnecesary character: one of the best ways is to use dos2unix command.
There are other ways to get rid of this character: from manually editing the file (in fact it's just a character that has to be removed) to using simple perl one-liners (that is one-line long scripts) like:
perl -i -pe 's/\r//g' file.
There are also options for zip that fix newline issue depending on the target system, that is system where you intend tu un-zip.
I hope I was helpful at leas a little. bye
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
I work for a very small ISP who up until now has run a combination of Win2000 and NT4 servers for our services (mail, DNS, dial-up).
Our equipment is showing it's age and we have been looking into changing into a Unix environment.
Our biggest challenge right now is our dial-up... (1 Reply)
Discussion started by: Kukur
1 Replies
2. UNIX for Dummies Questions & Answers
I so desperately need a script to copy a windows csv file to my unix server and i know these should be at dummies but i have no bits. it is life & no job situation help please. thanks (1 Reply)
Discussion started by: zhegal
1 Replies
3. Shell Programming and Scripting
Hi Experts,
I have a requirement where i need to setup a batch job which runs everymonth and move the pdf files from unix server to windows servers.
Could some body provide the inputs for this.
and also please provide the inputs on how to map the network dirve in the unix like that... (1 Reply)
Discussion started by: ger199901
1 Replies
4. UNIX for Dummies Questions & Answers
Hi all,
Is there a program that would make sense out of the data below; this is from MPAC unix system. I would like to get usable data that could be transferred into excel?
Rich, (5 Replies)
Discussion started by: berkmillionare
5 Replies
5. Shell Programming and Scripting
Hi, I am new to this subject.....Can someone please help me out with the script...
unix usernm "sdhftst"
unix pwd "chsd13"
windows usernm "dfghtst"
windows pwd "chsd13"
path..../xxx/xxxxx/xxxxxx/xxxxxxx
please can u get me a script...its only one file to get ftp.
Thanks... (2 Replies)
Discussion started by: himakiran9
2 Replies
6. HP-UX
i'm facing some problem to make my source code work in HP Unix 11.31 which works fine in HP Unix 11.11. Recently our unix server is upgraded to HP Unix 11.31, i was able to compile my source code successfully in 11.31 but i see some system call failure and socket failure.
is there any steps to... (5 Replies)
Discussion started by: Madanxyz
5 Replies
7. UNIX Desktop Questions & Answers
Hi all,
I wish to know whether Unix can access window's file in Unix's terminal?
Apart from that, how to copy files or share files between Window and Unix? I get to know of secure copy, however, my company's Unix does not support the feature of secure copy? Any other method for me to share/... (5 Replies)
Discussion started by: jessy83
5 Replies
8. Shell Programming and Scripting
We would be migrating UNIX file system to Linux file system.
We do have many directory and sub directories with files.
after migrating unix to linux file system , i want to make sure all the files has been copied ? What would be the best approach to validate directory ,sub-directory and file... (1 Reply)
Discussion started by: balajikalai
1 Replies
9. UNIX for Advanced & Expert Users
Need help on moving .csv file from unix to windows file path. (1 Reply)
Discussion started by: lakshmanraok117
1 Replies
10. Shell Programming and Scripting
We have certain number of scripts that run on AIX server using ksh.
Now that we migrate these scripts to Linux servers.
We need to know what are the changes that we have to perform in script to make it compatible to run on Linux.
Say like in our Unix -AIX "print" command worked.
But that did... (6 Replies)
Discussion started by: SIva81
6 Replies
LEARN ABOUT DEBIAN
x-tile
X-TILE(1) General Commands Manual X-TILE(1)
NAME
x-tile - select windows and adjust their tiling
SYNOPSIS
x-tile [option][rows][columns]
DESCRIPTION
This manual page documents briefly the x-tile command.
x-tile is a program that allows tiling selected windows as desired.
In addition of the predefined tilings, it allows user to create up to two user defined tilings to be applied later.
It also provides a system tray icon for faster access to tiling menu.
OPTIONS
This program doesn't follow the usual GNU command line syntax, with long options starting with two dashes (`-'). Instead, it uses case sen-
sitive single letter options, followed by arguments when required. A summary of options is included below.
w Open the x-tile main window without using the panel.
z Undo the latest tiling operation.
v Tile all opened windows vertically.
h Tile all opened windows horizontally.
u Tile all opened windows triangularly, top up.
d Tile all opened windows triangularly, top down.
l Tile all opened windows triangularly, top left.
r Tile all opened windows triangularly, top right.
q Tile all opened windows in a four square grid.
g Tile all opened windows in a grid with the given rows and columns.
1 Apply user defined tiling #1 to all opened windows.
2 Apply user defined tiling #2 to all opened windows.
i Invert the order of the latest tiling operation.
m Maximize all opened windows.
M Unmaximize all opened windows.
c Close all opened windows.
Any other
Show a brief summary of options.
AUTHORS
x-tile was written by Giuseppe Penone <giuspen@gmail.com> and Chris Camacho <chris_camacho@yahoo.com>.
This manual page was written by Ricardo Mones <mones@debian.org>, for the Debian project (and may be used by others).
May 7, 2012 X-TILE(1)