Hi all,
In unix shell, I want to get two strings ending with "." and starting with "." from a string "chan.txt"
For example, a string "chan.txt".
The first string is "chan"
The second string is "txt"
Yours
Wilson (1 Reply)
Hi all,
Iam trying to sort the contents of the file based on the position of the file.
Example:
$cat sample.txt
0101020060731 ## Header record
1c1 Berger Awc ANP20070201301 4000.50
1c2 Bose W G ANP20070201609 6000.70
1c2 Andy CK ANP20070201230 28000.00... (3 Replies)
I could really use some help with this issue. I'm having a lot of trouble getting my sed command to delete only the lines from my file that end with _;
I'm also supposed to carry the leading 'c' down to the next line. The commands I've tried either delete everything or nothing at all. Any help... (12 Replies)
Hi
I have a "set" command which ends with a "." (dot), for example:
set `grep "\<${pnum}\>" /tstmp/data.txt |sed 's/#//'` .
Can somebody help me to understand the purpose of this "set" and "." combination?
The problem is that this command does not produce the same result when run on AIX... (2 Replies)
I need to sort the following file by the rhdiskpower devices in the last column:
Total_MB Free_MB OS_MB Name Failgroup Library Label UDID Product Redund Path
1024 851 1024 OCRVOT1_0000 OCRVOT1_0000 System UNKNOWN ... (3 Replies)
hi,
please can I ask you for some help? I have data from 3D situation, x y z value
I'd like to use gnuplot to generate maps of the value in the planes z=0 to z=1 for example, my file looks
like
-0,012 0,0060 0,0 0,13972813076023477
-0,012 0,0064319163 4,2894483E-4 ... (1 Reply)
Hello All,
I have a scenario to read a file containing text like this:(say file name is Dummy.txt)
/home/abc/test1/ | file1
/home/abc/test2/ | file2
I used a variable to store the content from file like this (say for line1):
File=`head -1 Dummy.txt | cut -f1 -d "|"`
Dir=`head -1 Dummy.txt... (2 Replies)
I am trying to find out which files in a group of files have lines ending in r. What I have is this:
cat /tmp/*RECORDS| if grep r$>/dev/null; then echo "yes";else echo"no";fi
Records is more than one file. There are the following files
TEST-RECORDS
/volume/testing
/volume/programs
... (2 Replies)
Hi All,
I have 2 pipe delimited files viz., file_old and file_new. I'm trying to compare these 2 files, and extract all the different rows between them into a new_file.
comm -3 < sort file_old < sort file_new > new_file
I am getting the below error:
-ksh: sort: cannot open
But if I do... (7 Replies)
Discussion started by: njny
7 Replies
LEARN ABOUT OSF1
ncheck
ncheck(8) System Manager's Manual ncheck(8)NAME
ncheck - lists i-number or tag and path name for files in a local file system.
SYNOPSIS
/usr/sbin/ncheck [-i numbers] [-asm] file_spec [file_spec...]
PARAMETERS
Specifies one or more file systems. Specify any file system by entering its full path name or its mount point. The full path name is the
name entered in the file-spec field of the file system's entry in the /etc/fstab file. The mount point is the name entered in the
mnt_point field of the file system's entry in the /etc/fstab file.
You can also specify a UFS file system by entering the name of its device special file. For example: /dev/disk/dsk3c.
You can also specify an AdvFS fileset by entering the name of the file domain, a pound sign (#) character, and the name of the file-
set. For example: root_domain#root.
FLAGS
Includes in the list the path names . (dot) and .. (dot dot), which are ordinarily suppressed. Lists only those files with the specified
i-numbers (UFS) or tags (AdvFS). If you enter a zero (0) all allocated numbers will be displayed. Includes in the list the mode, UID, and
GID of the files. To use this flag you must also specify either the -i or the -s flag on the command line. Lists only the special files
and files with set-user-ID mode.
DESCRIPTION
The ncheck command with no flags generates a list of all files on every specified file system. The list includes the path name and the
corresponding i-number or tag of each file. Each directory file name in the list is followed by a /. (slash dot). Use the available flags
to customize the list to include or exclude specific types of files.
The files are listed in order by i-number or tag. To sort the list in a more useful format, pipe the output to the sort command.
NOTES
The term file_spec represents either a UFS file system or an AdvFS fileset.
To uncover concealed violations of security policy, that is, the inappropriate use of the set-user-ID mode, issue the command with the -s
flag to list only special files and files with set-user-ID mode.
RESTRICTIONS
You must be the root user to use this command.
The ncheck command checks the /etc/fstab file for the specified domain and file system entry. If there is no entry in /etc/fstab for the
specified file system, an error message is displayed to indicate that the file does not exist.
DIAGNOSTICS
When the file system structure is improper, ?? (question mark question mark) denotes the parent of a parentless file. A path name begin-
ning with ... (dot dot dot) denotes a loop.
ERRORS
The ncheck command can be used only for checking local file systems. The "nnn" string identifies the file system type.
FILES
Specifies the command path
RELATED INFORMATION sort(1), quot(8). delim off
ncheck(8)