12-20-2011
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Depending upon the occurence of string 'xyz', I want to remove -t from the input file.
There is not a fixed length input file.
Any suggestions
Input file:
this is xyz line -t of the data
this is line 2 of -t of the data
xyz this is line 3 of -t the file
this is line xyz of the -t file... (1 Reply)
Discussion started by: hemangjani
1 Replies
2. Shell Programming and Scripting
Hi,
I have a csv ( comma seperated value) file and I want to search for a particular string in each line of that file only if it occurs only once in the line.
That is same string may be present more than once in a line but I want it to be greped only when it occurs just once.
Please advice... (17 Replies)
Discussion started by: Piscian
17 Replies
3. Shell Programming and Scripting
Hi All,
I want to search the string for vowel's occurence and find the no of occurence of each vowels, Could anyone help me out? This is urgent to me...I m new to Shell programming..
Thanks and Regards,
Nids:b: (4 Replies)
Discussion started by: Nidhi2177
4 Replies
4. Shell Programming and Scripting
I need to find the index of last '|' (highlighted in bold) in awk :
|ifOraDatabase.Lastservererr<>0then|iferr_flag<>0then|end if
Please suggest a way... Thanks (5 Replies)
Discussion started by: joyan321
5 Replies
5. Shell Programming and Scripting
Hi,
I'm a newbie to shell scripting and have searched the forum but couldn't find what i was looking for.
Basically I have a list of filenames like...
123-fileone.txt
I want to be able to extract the prefix up to the first '-'. So I'd end up with 123. I have attempted it using a pretty... (2 Replies)
Discussion started by: kirkg
2 Replies
6. UNIX for Dummies Questions & Answers
Hi guys,
I like to find the Line number of Nth Occurence of a Search string in a file.
If possible, if it will land the cursor to that particualar line will be great.
Cheers!! (3 Replies)
Discussion started by: mac4rfree
3 Replies
7. UNIX for Dummies Questions & Answers
Hi Everyone,
I am looking for the unix command by which I can view 10 lines after the 1st occurence of a string (including the 1st occurence)
Example : I have the following lines in a unix file. I have to look for the 1st occurence of the string "How are you" and then view the next 10 lines... (3 Replies)
Discussion started by: kannanfile
3 Replies
8. Shell Programming and Scripting
I have a log file which looks like this:
<845185415165:STATUS:5/0:0:0:0:0|ghy59DI5zasldf87asdfamas8df9asd903tGUVSQx4GJVSQ==>
I have to extract DATE and number of times the keyword STATUS is shown on each date.
Input is : <1354625655744:STATUS:5/0:0:0:0:0|ghy59DI5ztGUVSQx4GJVSQ==>... (8 Replies)
Discussion started by: maddyrox
8 Replies
9. Shell Programming and Scripting
I have file in which the data looks like this,
01,0000000,xxxxxxx/
02,xxxxxxxx,yyyyyy/
03,test1,41203016,,/
01,0000000,xxxxxxx/
02,xxxxxxxx,yyyyyy/ ... (16 Replies)
Discussion started by: r@v!7*7@
16 Replies
10. Shell Programming and Scripting
My data
20161220 20:30:01 MODE 1 TEST 1 SOURCE 1 SET 1
20161220 20:30:02 MODE 1 TEST 2 SOURCE 1 SET 1
20161220 20:30:02 MODE 1 TEST 3 SOURCE 1 SET 1
20161220 20:30:02 MODE 1 TEST 1 SOURCE 2 SET 1
20161220 20:30:04 MODE 1 TEST 1 SOURCE 1 SET 1 MODE 1 TEST 2 SOURCE 2 SET 1
20161220 20:30:02... (7 Replies)
Discussion started by: migurus
7 Replies
LEARN ABOUT HPUX
fsadm_hfs
fsadm_hfs(1M) fsadm_hfs(1M)
NAME
fsadm_hfs: fsadm - HFS file system administration command
SYNOPSIS
specific_options] special
DESCRIPTION
The command is designed to perform selected administration tasks on HFS file systems. special is a device file containing an unmounted
file system.
Only a superuser can invoke
Options
Specify the HFS file system type.
Specify a list of comma separated
suboptions and/or keyword/attribute pairs from the list below. The following specific_options are valid on HFS file sys-
tems.
Converts a file system to a file system. The file system should be unmounted and must be in a clean state (see
fsck(1M)). A file system supports file sizes greater than 2 gigabytes.
Converts a file system to a file system. The file system should be umounted and must be in a clean state (see
fsck(1M)). All should be purged from the file system for the conversion to succeed.
Echo the completed command line,
but perform no other action. The command line is generated by incorporating the user-specified options and other informa-
tion derived from This option allows the user to verify the command line.
DIAGNOSTICS
Error and warning messages may originate from and See fsadm(1M) or fsck(1M) to interpret the error and warning messages.
EXAMPLES
Convert a HFS file system to a HFS file system:
Convert a HFS file system to a file system:
Display relevant HFS file system statistics:
WARNINGS
The size of a file system will impact the performance of the command.
During conversion from largefiles file system to a nolargefiles file system scans the entire file system for a large file. This functional-
ity degrades the performance of the command.
FILES
Static information about the systems
SEE ALSO
fsadm(1M), fsadm_vxfs(1M), fsck(1M), fstab(4), fs_wrapper(5).
fsadm_hfs(1M)