/export/jumpstart/solaris9_image/Solaris_9/Product/SUNWimagick/reloc:
total 2
116617 drwxr-xr-x 3 root staff 96 Jun 29 2004 .
81690 drwxrwxr-x 5 root staff 1024 Jun 29 2004 ..
116618 drwxr-xr-x 3 root staff 96 Jun 29 2004 usr
below are the steps and needs scripting
I have to read 30720 in file1
search 30720 in file2
print 'Not exist'
I have to read next 115016 in file1
search 115016 in file2
print 'not exist'
I have to read next 116366 in file1
search 116366 in file2
print 'not exist'
..........
I have to read 116614 in file1
search 116614 in file2
if it exists (print the following)
print '/export/jumpstart/solaris9_image/Solaris_9/Product/SUNWimagick/install'
please help me how to do in a scripting.
thanks
Try and adapt the following script :
With your sample datas posted, the result is :
I need to count the number of files which have a search string, but counting the file only once
if search string is found.
eg: File1: Please note that there are 2 occurances of "aaa"
aaa
bbb
ccc
aaa
File2: Please note that there are 3 occurances of "aaa"
aaa
bbb
ccc... (1 Reply)
i am very new to UNIX
plz help me in this scenario
i have two text files as below
file1.txt
name=Rajakumar.
Discipline=Electronics and communication.
Designation=software Engineer.
file2.txt
name=Kannan.
Discipline=Mechanical.
Designation=CADD Design Engineer.
... (6 Replies)
Hi All,
Can you please guide me to search a string in a particular column of file and return the line number of the line where it was found using awk. As an example :
abc.txt
7000,john,2,1,0,1,6
7001,elen,2,2,0,1,7
7002,sami,2,3,0,1,6
7003,mike,1,4,0,2,1
8001,nike,1,5,0,1,8... (3 Replies)
i have one file, i am doing 'vi Filename' now i want to search for particular string and i want to know how many times that string occurs in whole file (5 Replies)
Hi
I have below script which is used to grep specific errors and if error string matches send an email alert.
Script is working fine , however , i wish to print next 10 lines of the string match to get the details of error in the email alert
Current code:-
#!/bin/bash
tail -Fn0 --retry... (2 Replies)
I have file which contains a huge amount of data. I need to search the pattern Message id. When that pattern is matched I need to get abcdeff0-1g6g-91g3-1z2z-2mm605m90000 to another file.
Kindly provide your input.
File is like below
Jan 11 04:05:10 linux100 |NOTICE... (2 Replies)
Hi,
Need your help for this scripting issue I have. I am not really good at this, so seeking your help.
I have a file looking similar to this:
Hello, i am human and name=ABCD.
How are you?
Hello, i am human and name=PQRS.
I am good.
Hello, i am human and name=ABCD.
Good bye.
Hello, i... (12 Replies)
Hi guys,
I have a text file named file1.txt that is formatted like this:
001 , ID , 20000
002 , Name , Brandon
003 , Phone_Number , 616-234-1999
004 , SSNumber , 234-23-234
005 , Model , Toyota
007 , Engine ,V8
008 , GPS , OFF
and I have file2.txt formatted like this:
... (2 Replies)
Hi there,
I am new to Unix and had below requirement to finish my task.
I have file1.dat which has data as shown below.
case1.txt
case2.txt
case3.txt
case4.txt
file1.dat has only file names
I have folder which has above files mentioned in file1.dat
./all_files
case1.txt... (6 Replies)
I want to search a small string in a large string and find the locations of the string. For this I used grep "string" -ob <file name where the large string is stored>. Now this gives me the locations of that string. Now how do I store these locations in a text file.
Please use CODE tags as... (7 Replies)
Discussion started by: ANKIT ROY
7 Replies
LEARN ABOUT OSF1
savemeta
savemeta(8) System Manager's Manual savemeta(8)NAME
savemeta - Takes a snapshot of an AdvFS domain's metadata
SYNOPSIS
/sbin/advfs/savemeta [-LSTt] [-f fileset] domain savedir
OPTIONS
Saves the structure information from the frag file in each named fileset to the savedir. If this option is not specified, the default is to
write no frag file information to the savedir. Do not save the domain's log file to the savedir. If this option is not specified, the
default is to write the log file to the savedir. Do not save each volume's storage bitmap (SBM) to the savedir. If this option is not
specified, the default is to write each volume's SBM to the savedir. Do not save the domain's root tag file to the savedir. If this
option is not specified, the default is to write the root tag file to the savedir. Do not save the fileset tag files to the savedir. If
this option is not specified, the default is to write the fileset tag files to the savedir.
OPERANDS
The name of the AdvFS file domain from which you want to obtain the metadata. The name of a directory into which the saved metadata is to
be written.
DESCRIPTION
This script saves a snapshot of the specified domain metadata into a directory, savedir, that has the following structure:
savedir/volume_directory/RBMT_file
/BMT_file
/SBM_file
/log_file
/tag_file
/fileset_directory/frag_file
/tag_file
By default, the savemeta command saves all the bitfile metadata (BMT), all the SBM, the log and root tag files, and the fileset tag files.
If you specify the -f option, the command saves the frag file information for each fileset.
RESTRICTIONS
You must be the root user to use this command.
EXIT STATUS
This command returns a 0 (zero) on success. Otherwise, it returns a 1 and displays an error diagnostic.
FILES
The command path.
SEE ALSO
Commands: nvbmtpg(8), nvfragpg(8), nvlogpg(8), nvtagpg(8), vsbmpg(8)savemeta(8)