06-11-2016
Quote:
Originally Posted by
Don Cragun
I have never heard of a linux command on Windows.
Are the files you want to merge on Windows or are they on a Linux system that you are accessing while you are logged into a Windows system?
Are you running Linux-like commands on your Windows system provided as part of something like Cygwin or are you logging into a Linux system using something like rsh and running commands directly on a Linux system?
No I am not using Cygwin, I am using the project GnuWin Packages, is quite old but works in great way. I write the linux commands directly on the dos shell, but all commands are working really well. Before have the srtructure I posted I cleaned many parts of the files deleting blank lines and tags I don't need with sed. But about join I am not able
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
My apologies if this has been posted elsewhere, I have had a look at several threads but I am still confused how to use these functions. I have two files, each with 5 columns:
File A: (tab-delimited)
PDB CHAIN Start End Fragment
1avq A 171 176 awyfan
1avq A 172 177 wyfany
1c7k A 2 7... (3 Replies)
Discussion started by: InfoSeeker
3 Replies
2. UNIX for Dummies Questions & Answers
file1:
Toronto:12439755:1076359:July 1, 1867:6
Quebec City:7560592:1542056:July 1, 1867:5
Halifax:938134:55284:July 1, 1867:4
Fredericton:751400:72908:July 1, 1867:3
Winnipeg:1170300:647797:July 15, 1870:7
Victoria:4168123:944735:July 20, 1871:10
Charlottetown:137900:5660:July 1, 1873:2... (2 Replies)
Discussion started by: mindfreak
2 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I have 20 tab delimited text files that have a common column (column 1). The files are named GSM1.txt through GSM20.txt. Each file has 3 columns (2 other columns in addition to the first common column).
I want to write a script to join the files by the first common column so that in the... (5 Replies)
Discussion started by: evelibertine
5 Replies
4. Shell Programming and Scripting
I've got two different files and want to compare them.
File 1 :
<response ticketId="944" type="getQueryResults"><status>COMPLETE</status><description>Query results fetched successfully</description><recordSet totalCount="1" type="sms_records"><record id="38,557"><columns><column><name>orge... (2 Replies)
Discussion started by: Shaishav Shah
2 Replies
5. Shell Programming and Scripting
I have file1.txt
BGE179W1
BGE179W2
BGE179W3
BGE187W1
BGE187W2
BGE187W3
BGE194W1
BGE194W2
BGE194W3
BGE227W1
BGE227W2
BGE227W3
BGE288W1
BGE288W2
BGE288W3
BGE650W1
---------- Post updated at 12:41 AM ---------- Previous update was at 12:39 AM ---------- (5 Replies)
Discussion started by: radius
5 Replies
6. Shell Programming and Scripting
Hello everybody,
I have a double mission with some XML files, which is pretty challenging for my actual beginner UNIX knowledge. I need to extract some strings from multiple XML files and create a new XML file with the searched strings..
The original XML files contain the source code for... (12 Replies)
Discussion started by: milano.churchil
12 Replies
7. Shell Programming and Scripting
Hi Everyone,
I'm new here and I was checking this old post:
/shell-programming-and-scripting/180669-splitting-file-into-several-smaller-files-using-perl.html
(cannot paste link because of lack of points)
I need to do something like this but understand very little of perl.
I also check... (4 Replies)
Discussion started by: mcosta
4 Replies
8. Shell Programming and Scripting
Hi,
I'm having a xml file with multiple xml header. so i want to split the file into multiple files.
Sample.xml consists multiple headers so how can we split these multiple headers into multiple files in unix.
eg :
<?xml version="1.0" encoding="UTF-8"?>
<ml:individual... (3 Replies)
Discussion started by: Narendra921631
3 Replies
9. Shell Programming and Scripting
Hi all,
I need help to parse this xml file that has paragraphs broken in different lines and I would like to join in a single line.
I hope you can understand my explanation. Thanks for any help/direction.
The script could be in bash, awk, ruby, perl whatever please
In the output I want:... (8 Replies)
Discussion started by: Ophiuchus
8 Replies
10. Shell Programming and Scripting
Hello,
This post is already here but want to do this with another way
Merge multiples files with multiples duplicates keys by filling "NULL" the void columns for anothers joinning files
file1.csv:
1|abc
1|def
2|ghi
2|jkl
3|mno
3|pqr
file2.csv:
1|123|jojo
1|NULL|bibi... (2 Replies)
Discussion started by: yjacknewton
2 Replies
LEARN ABOUT DEBIAN
libntfs-gnomevfs
NTFSPROGS(8) System Manager's Manual NTFSPROGS(8)
NAME
libntfs-gnomevfs - Module for GNOME VFS that allows access to NTFS filesystems.
OVERVIEW
The GNOME virtual filesystem (VFS) provides universal access to different filesystems. The libntfs-gnomevfs module enables GNOME VFS aware
clients to seamlessly utilize the NTFS library libntfs.
So you can access an NTFS filesystem without needing to use the NTFS utilities themselves (at least in theory anyway). In practice this is
probably more useful for programs and programmers to make using libntfs easier, more generic, and to allow easier debugging of libntfs.
Examples
Prerequisites
To be able to follow these examples you will need to have installed the test utilities from the gnome-vfs-2.4.x package. The easiest way
to do this is to download and compile the gnome-vfs-2 package, e.g. download from:
http://ftp.gnome.org/pub/GNOME/desktop/2.4/2.4.0/sources/gnome-vfs-2.4.0.tar.gz
Then run ./configure followed by make and make install (as root). This will install it into /usr/local so it should not conflict with your
existing installation from rpm or deb packages which will be in /usr.
Note you may also need to add /usr/local/lib to /etc/ld.so.conf and then run ldconfig (as root) to let your system see the installed gnome-
vfs-2.4.x libraries.
Then run ./configure followed by make and make install (as root) in the main ntfsprogs directory to build and install the libntfs-gnomevfs
module and libntfs library which is used by the module.
Copying a file from an NTFS partition
To copy the file autoexec.bat from the main directory of an NTFS partition (/dev/hda1) to the /tmp directory on your system you could run:
/path/to/gnome-vfs-2.4.x/test/test-xfer file:///dev/hda1#libntfs:/autoexec.bat /tmp/autoexec.bat
To copy a file from a directory inside the NTFS partition you would just specify the full path. So for example to copy the file win.ini
from the Windows directory you would run:
/path/to/gnome-vfs-2.4.x/test/test-xfer file:///dev/hda1#libntfs:/Windows/win.ini /tmp/win.ini
Shell access to an NTFS partition
For debugging it is most useful to be able to do various things to the NTFS partition while it is being operated upon by libntfs. This is
achieved using the test-shell utility (from the gnome-vfs-2.4.x package) by running: /path/to/gnome-vfs-2.4.x/test/test-shell
This drops you into the GNOME VFS shell from where you can now cd into the NTFS partition (/dev/hda1) by typing: cd file:///dev/hda1#lib-
ntfs:/
You are now in the root directory of the NTFS partition. The first thing you will probably want to do is to type "ls" to display the
directory contents.
You could then change directories using the "cd" command, e.g. to enter the Windows directory you would type: cd Windows
You can then open files, seek inside files, read from files (write is not enabled at present), etc thus exercising large portions of the
NTFS library.
Use the "help" command while in the shell to see the available commands.
BUGS
No bugs are known but there are several limitations at the moment:
You cannot get information about files other than what the "ls" command in the test-shell can give you, i.e. the "info" command in the
test-shell does not work.
Further access to the partition is read-only and hence you cannot write to files. This will be changed in the future once the module has
had more wide testing.
There may be other limitations and possibly bugs. Please report any problems to the NTFS mailing list: linux-ntfs-dev@lists.source-
forge.net
AUTHORS
The libntfs-gnomevfs module was written by Jan Kratochvil. This man page was written by Anton Altaparmakov.
AVAILABILITY
The ntfsprogs package which contains the libntfs-gnomevfs module can be downloaded from http://www.linux-ntfs.org/content/view/19/37/
These manual pages can be viewed online at http://man.linux-ntfs.org/ntfsprogs.8.html
SEE ALSO
ntfsprogs(8)
Linux-NTFS version 2.0.0 November 2003 NTFSPROGS(8)