04-16-2013
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I've been searching around here and other places, but can't put this together...
I've got a unique list of words in file 1 (one word on each line).
I need to delete each line in file2 that begins with the word in file1.
I started this way, but want to know how to use file1 words instead... (13 Replies)
Discussion started by: michieka
13 Replies
2. Shell Programming and Scripting
I want to script out deleting the first field of a file when it is created. I'm looking to store the output of an ls -l commad to a file but leaving off the permissions so when the file is opened I see something like;
2 bin bin 256 Feb 6 2005 mnt
5 root system 256... (2 Replies)
Discussion started by: daveisme
2 Replies
3. Shell Programming and Scripting
Greetings,
I want to use a script (preferably awk) which determines if the first character in a line is double-byte (as in Japanese or Chinese) and deletes it.
For example:
(in the above quote, I see Japanese on my screen for two lines - with 2 characters in the first and 3 characters in the... (8 Replies)
Discussion started by: ubbeauty
8 Replies
4. UNIX for Dummies Questions & Answers
Hello. I have the following issue: my txt file has the following format:
train/dr4/fklc0/sx175.txt
0 80282 Severe myopia contributed to Ron's inferiority complex.
train/dr4/fklc0/sx355.txt
0 42906 Dolphins are intelligent marine mammals. train/dr4/fklc0/sa2.txt
awk 'NR%2==0' test1.txt >... (4 Replies)
Discussion started by: li_bi
4 Replies
5. Shell Programming and Scripting
Hi All
I have a folder that contains hundreds of file with a names
3.msa
4.msa
21.msa
6.msa
345.msa
456.msa
98.msa
...
...
...
I need rename each of this file by adding "core_" in the begiining of each file such as
core_3.msa
core_4.msa
core_21.msa (4 Replies)
Discussion started by: Lucky Ali
4 Replies
6. UNIX for Dummies Questions & Answers
Im trying to use wild cards to find files that start with either an upper or lower case letter e.g. list files that beginning with b or B, i also want to sort them by the time they were last modified. e.g latest file created first.
At the moment i have the following code that
ls -d... (3 Replies)
Discussion started by: parker4001
3 Replies
7. Shell Programming and Scripting
I am writing a code to append some numbers in the beginning of each line in all the files present in a directory. The number of files are really huge. The files are numbered as 1.sco, 2.sco, 4.sco (Note: 3.sco is missing).
The files currently look like this:
1.sco
2 3
5 6
6 7My task is to... (4 Replies)
Discussion started by: shoaibjameel123
4 Replies
8. Shell Programming and Scripting
Hi,
I have multiple files having many lines like as bvelow:
file Name a.txt
abc def
def xyz
123 5678
file Name b.txt
abc def
def xyz
123 5678
I would like to append files in the below format to a new file:
file Name c.txt (7 Replies)
Discussion started by: rramkrishnas
7 Replies
9. Shell Programming and Scripting
Hi
My directory structure is as below.
dir1, dir2, dir3
I have the list of files to be deleted in the below path as below.
/staging/retain_for_2years/Cleanup/log $ ls -lrt
total 0
drwxr-xr-x 2 nobody nobody 256 Mar 01 16:15 01-MAR-2015_SPDBS2
drwxr-xr-x 2 root ... (2 Replies)
Discussion started by: prasadn
2 Replies
10. UNIX for Beginners Questions & Answers
Hi,
I have been searching how to do this but I can't seem to find how to do it. Hopefully someone can help.
I have multiplr files, 100's example 12345-zxys.213423.zyz.txt. I want to be able to take all these files and remove the first '12345-' from each of the files. '12345-' these characters... (5 Replies)
Discussion started by: israr75
5 Replies
LEARN ABOUT CENTOS
ntfslabel
NTFSLABEL(8) System Manager's Manual NTFSLABEL(8)
NAME
ntfslabel - display/change the label on an ntfs file system
SYNOPSIS
ntfslabel [options] device [new-label]
DESCRIPTION
ntfslabel will display or change the file system label on the ntfs file system located on device. It can also change the serial number of
the device.
If the optional argument new-label is not present, and no option is present, ntfslabel will simply display the current file system label.
If the optional argument new-label is present, then ntfslabel will set the file system label to be new-label. NTFS file system labels can
be at most 128 Unicode characters long; if new-label is longer than 128 Unicode characters, ntfslabel will truncate it and print a warning
message.
It is also possible to set the file system label using the -L option of mkntfs(8) during creation of the file system.
OPTIONS
Below is a summary of all the options that ntfslabel accepts. Nearly all options have two equivalent names. The short name is preceded by
- and the long name is preceded by --. Any single letter options, that don't take an argument, can be combined into a single command, e.g.
-fv is equivalent to -f -v. Long named options can be abbreviated to any unique prefix of their name.
-f, --force
This will override some sensible defaults, such as not working with a mounted volume. Use this option with caution.
-h, --help
Show a list of options with a brief description of each one.
--new-serial[=ssssssssssssssss], or
--new-half-serial[=ssssssss]
Set a new serial number to the device, either the argument value, or a random one if no argument is given. The serial number is a 64
bit number, represented as a sixteen-digit hexadecimal number, used to identify the device during the mounting process. As a conse-
quence, two devices with the same serial number cannot be mounted at the same time on the same computer. This is not the volume
UUID used by Windows to locate files which have been moved to another volume.
The option --new-half-serial only changes the upper part of the serial number, keeping the lower part which is used by Windows
unchanged. In this case the optional argument is an eight-digit hexadecimal number.
-n, --no-action
Don't actually write to disk.
-q, --quiet
Reduce the amount of output to a minimum.
-v, --verbose
Increase the amount of output that ntfslabel prints. The label and the serial number are displayed.
-V, --version
Show the version number, copyright and license for ntfslabel.
BUGS
There are no known problems with ntfslabel. If you find a bug please send an email describing the problem to the development team:
ntfs-3g-devel@lists.sf.net
AUTHORS
ntfslabel was written by Matthew J. Fanto, with contributions from Anton Altaparmakov and Richard Russon. It was ported to ntfs-3g by Erik
Larsson.
AVAILABILITY
ntfslabel is part of the ntfs-3g package and is available from:
http://www.tuxera.com/community/
SEE ALSO
mkntfs(8), ntfsprogs(8)
ntfs-3g 2017.3.23 January 2012 NTFSLABEL(8)