05-03-2011
Hello,
Unluckily I am working in Windows and have to fall back on GAWK/NAWK for windows.
Maybe this is the reason why I get the message
0 delimiters.
I should have mentioned the same to you at the outset. Sorry for the hassle. Any turn-around is possible?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have an urgent task here. I am required to sort a flat file based on multiple columns which are based on the character position in that line. I am restricted to use the character position instead of the space and sort +1 +2 etc to do the sorting.
I understand that there is a previous... (8 Replies)
Discussion started by: cucubird
8 Replies
2. Shell Programming and Scripting
Hi
I wanted to cut the feilds comming after % and After $ at one go
can we do some thing like this cut -f 2 -d "%|$" (But it doesnot work)
Input File
BWPG %TCPRP1 $SCSPR000
BWPH %TCPRP1 $SCSPR003
BWPI %TRTYUP ResourceDescription="IMPRIMANTE " $BWOPTY
BWPJ %ZOMBIE ... (4 Replies)
Discussion started by: pbsrinivas
4 Replies
3. Shell Programming and Scripting
Hi,
I have a requirement whereby I have to sort a flat file based on Multiple Columns (similar to ORDER BY Clause of Oracle). I am getting 10 columns in the flat file and I want the file to be sorted on 1st, 3rd, 4th, 7th and 9th columns in ascending order. The flat file is pipe seperated.
Any... (15 Replies)
Discussion started by: dharmesht
15 Replies
4. Shell Programming and Scripting
Hi All,
I am encountered with a problem while sorting a file based on multiple columns . I need to sort like:
(field2,ascending) , (field3,ascending) ,(field8,descending) , (field7,ascending),(field13,ascending).
So far i was sorting only in ascending order but here i need to use one... (1 Reply)
Discussion started by: apjneeraj
1 Replies
5. Shell Programming and Scripting
I have the following string sample:
bla bla bla bla bla
I would like to extract the "123" using awk.
I thought about awk -F"]" '{ print $1 }' but it doesn't work
Any ideas ? (7 Replies)
Discussion started by: gdub
7 Replies
6. Shell Programming and Scripting
Hello
If you wanted to sort a .csv file that was filled with lines like this:
<Ticker>,<Date as YYYYMMDD>,<Time as H:M:S>,<Volume>,<Corr>
(H : , M, S: )
by date, does anybody know of a better solution than to turn the 3rd and 4th colons of every line into commas, sorting on four keys,... (20 Replies)
Discussion started by: Ryan.
20 Replies
7. Shell Programming and Scripting
Hi,
I have a problem to concatenate the lines based on number of delimiters (if the delimiter count is 9 then concatenate all the fields & remove the new line char bw delimiters and then write the following data into second line) in a file.
my input file content is
Title| ID| Owner|... (4 Replies)
Discussion started by: bi.infa
4 Replies
8. Shell Programming and Scripting
Hi, I need to display the last column value in the below o/p.
sam2 PS 03/10/11 0 441
Unable to get o/p with this awk code
awk -F"+" '{ print $4 }' pwdchk.txt
I need to display 441(in this eg.) and also accept it as a variable to treat it with if condition and take a decision.... (1 Reply)
Discussion started by: sam_bd
1 Replies
9. Shell Programming and Scripting
Hi Folks,
This is the first time I ever encountered this situation
My input file is of this kind
cat input.txt
1 PAIXAF 0 1 1 -9 0 0 0 1 2 0 2 1 2 1
7 PAIXEM 0 7 1 -9 1 0 2 0 1 2 2 1 0 2
9 PAKZXY 0 2 1 -9 2 0 1 1 1 0 1 2 0 1
Till the sixth column (which is -9), I want my columns to... (4 Replies)
Discussion started by: jacobs.smith
4 Replies
10. Shell Programming and Scripting
Hi,
I have a requirement where in I need to insert delimiters before the last column of the total delimiters is less than a specified number.
Say if the delimiters is less than 139, I need to insert 2 columns ( with blanks) before the last field
awk -F 'Ç' '{ if (NF-1 < 139)} END { "Insert 2... (5 Replies)
Discussion started by: arunkesi
5 Replies
LEARN ABOUT LINUX
ntfs-3g.usermap
NTFS-3G.USERMAP(8) System Manager's Manual NTFS-3G.USERMAP(8)
NAME
ntfs-3g.usermap - NTFS Building a User Mapping File
SYNOPSIS
ntfs-3g.usermap windows-system-device [other-ntfs-device...]
Where windows-system-device is the device containing the Windows system whose users are to be mapped to current Linux system.
And other-ntfs-device is another device containing files which are to be accessed both by the Windows mentioned above and current Linux
system.
the ntfs-3g.usermap command must be started as root, and the designated devices must not be mounted.
Typing ntfs-3g.usermap with no args will display a summary of command arguments.
DESCRIPTION
ntfs-3g.usermap creates the file defining the mapping of Windows accounts to Linux logins for users who owns files which should be visible
from both Windows and Linux.
It relies on existing files which were created on Windows, trying to locate significant files and asking which Linux user or group should
own them. When a Linux owner or group is requested, the reply may be :
- the uid or gid (numeric or symbolic) of Linux owner or group of the file.
In that situation, no more file with the same Windows owner will be selected.
- or no answer, when not able to define the owner or group.
In that situation another file owned by the same Windows user or group may be selected later so that a mapping can be defined.
The mappings for standard Windows users, such as "Administrator" or "All Users" are defined implicitly. As a consequence a user mapping
should never be defined as Linux root.
When there are no more significant files, ntfs-3g.usermap create the mapping file into the file UserMapping in the current directory. This
file has to be moved to the hidden directory .NTFS-3G in the root of all the NTFS file systems to be shared between Windows and Linux. This
requires the file system to be mounted, but the created file will not be taken into account if not present at mount time, which means the
file system has to be unmounted and mounted again for the new mapping file to be taken into account.
OPTIONS
No option is defined for ntfs-3g.usermap.
EXAMPLES
Map the users defined on the Windows system present on /dev/sda1 :
ntfs-3g.usermap /dev/sda1
A detailed example, with screen displays is available on http://pagesperso-orange.fr/b.andre/usermap.html
EXIT CODES
ntfs-3g.usermap exits with a value of 0 when no error was detected, and with a value of 1 when an error was detected.
KNOWN ISSUES
Please see
http://www.tuxera.com/community/ntfs-3g-faq/
for common questions and known issues. If you would find a new one in the latest release of the software then please send an email
describing it in detail. You can contact the development team on the ntfs-3g-devel@lists.sf.net address.
AUTHORS
ntfs-3g.secaudit has been developed by Jean-Pierre Andre.
THANKS
Several people made heroic efforts, often over five or more years which resulted the ntfs-3g driver. Most importantly they are Anton Alta-
parmakov, Richard Russon, Szabolcs Szakacsits, Yura Pakhuchiy, Yuval Fledel, and the author of the groundbreaking FUSE filesystem develop-
ment framework, Miklos Szeredi.
SEE ALSO
ntfsprogs(8), attr(5), getfattr(1)
ntfs-3g.usermap 1.1.2 February 2010 NTFS-3G.USERMAP(8)