Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Help with deleting some parts from text file Post 302650011 by newboy on Friday 1st of June 2012 10:51:48 AM
Old 06-01-2012
Quote:
Originally Posted by joeyg
Are you removing rows with certain special characters?
; ( )

That might make it easy for a grep -v command?
Not really, Actually the file contains many other blocks similar to HOME, just instead of HOME they begin with OFFICE. Those blocks again contain similar special characters , however I dont wish to delete the OFFICE block.

I just wish to delete the content of block HOME (....)

Hope I have explained myself clearly.Smilie
Thanks for quick reply Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Deleting text from a file

Hi, In my korn shell script, I want to delete some particular text from a certain file...How can this be done? Is the below right? ed $NAMES << EOF echo "" > /dev/null echo "${x} = " > /dev/null echo "name = " > /dev/null echo "adress = " > /dev/null w q EOF (1 Reply)
Discussion started by: n8575
1 Replies

2. Shell Programming and Scripting

Deleting text block in file

Need to delete a text block inside a file, that is marked with a start and an end pattern. Eg do not delete not delete <tag1> delete everything here here and here and here... <tag2> do not delete do not delete.... Believe sed is able to do this job but don't get it working. ... (1 Reply)
Discussion started by: andre123
1 Replies

3. UNIX for Dummies Questions & Answers

Deleting lines in text file

Hi everyone, I have text files that I want to delete lines from. I have searched through this forum for quite some time and found examples of both awk and sed. Unfortunately, I was not able to successfully do what I want. Well to some extent. I did manage to delete the first 15 lines from each... (5 Replies)
Discussion started by: hern14
5 Replies

4. Shell Programming and Scripting

deleting certain parts of a line in perl

I have a filr data.txt. Its contents are Available labels (* indicates activated, I indicates installed, R idicates running): abc-3.0.3 def-3.0.4 xyz-3.1.2-1.0 I want to delete " Available labels (* indicates activated, I indicates installed, R idicates running):" and... (3 Replies)
Discussion started by: lassimanji
3 Replies

5. Shell Programming and Scripting

How can i break a text file into parts that occur between a specific pattern

How can i break a text file into parts that occur between a specific pattern? I have text file having various xml many tags like which starts with the tag "<?xml version="1.0" encoding="utf-8"?>" . I have to break the whole file into several xmls by looking for the above pattern. All the... (9 Replies)
Discussion started by: abhinav192
9 Replies

6. UNIX for Dummies Questions & Answers

Deleting all instances of a certain character from a text file

In my command prompt I did: sed 's/\://' mytextfile > newtextfile But it only deleted the first instance of : in each line when some lines have multiple : appearing in each one. How can I delete all the : from the entire file? (1 Reply)
Discussion started by: guitarscn
1 Replies

7. UNIX for Dummies Questions & Answers

Help with deleting characters from text file

I have a text file that looks like this: I want to delete the last character of first column in all rows so that my output looks like this: Thanks a lot! (1 Reply)
Discussion started by: evelibertine
1 Replies

8. UNIX for Dummies Questions & Answers

Deleting specific rows from a text file

How do I go about deleting specific rows from a text file (given row number)? (5 Replies)
Discussion started by: evelibertine
5 Replies

9. UNIX for Dummies Questions & Answers

Deleting Block of Text from a File

Hi I am looking for the way to delete the block of data for example original file line1 line2 line3 line4 line5 input file line2 line3 original file should contain line1 line4 line5 (3 Replies)
Discussion started by: rakeshkumar
3 Replies

10. Shell Programming and Scripting

How to remove answers and explanation parts from a text file with lots of questions.?

Hi, I have a text file with thousands of questions in it. Each question (multiple lines) with multiple choice options, Answer and Explanation (optional). I need to delete Answer & explanation parts for all Questions and insert a blank line before net question. Each question starts with NO. I... (4 Replies)
Discussion started by: prvnrk
4 Replies
fscat_vxfs(1M)															    fscat_vxfs(1M)

NAME
fscat_vxfs: fscat - cat a VxFS file system SYNOPSIS
output-file] offset] length] block_size] special DESCRIPTION
provides an interface to a VxFS snapshot file system, similar to that provided by invoked on the block or character special file of regular VxFS file systems. works when executed on the special device of any VxFS file system. On most VxFS file systems, the block or character special file for the file system provides access to a raw image of the file system to back up the file system to tape. On a snapshot file system, access to the corresponding block or character special file provides little useful information. provides a stream of bytes representing the file system snapshot. This datastream is written by default to standard output, although the output-file option can be used to specify another destination. The datastream on standard output can be processed several ways, such as in a pipeline, or written to a tape. By default, the output is a stream of bytes that starts at the beginning of the file system and continues to the last byte. On a snapshot file system, data is read from the file system using special ioctls on the mount point. On other VxFS file systems, data is read from the specified special file. Unless otherwise specified, data is written to standard output. All numbers entered as option arguments can have as a prefix to indicate octal, or as a prefix to indicate hexadecimal. A or can be appended to indicate the value is in 512-byte blocks, a or to indicate the value is in kilobytes, an or to indicate the value is in megabytes, or a or to indicate the value is in gigabytes. An appended letter can be separated from the number by a space, in which case the letter and number should be enclosed in a set of quotes. For example: All numbers entered as options must be in multiples of 512 bytes. For example, a value of 5713 as an offset is rejected. Options recognizes the following options: Specify the output block size, in bytes. block_size must be less than or equal to 1 megabyte. Specify the VxFS file system type. Specify an output file in which to write the datastream. Specify the transfer length, in bytes. A length of includes the remainder of the file system after the specified offset. Specify the starting offset in bytes. Operands recognizes the following operand: special Name of the special device from which the VxFS file system is accessed. Notes Snapshot file systems are only available with the HP OnLineJFS product. A snapshot file system cannot be written to. A snapshot file system exists only as long as it is mounted; once unmounted, the special file no longer contains a snapshot file system. When is run on a mounted VxFS snapshot, the content of free blocks (that is, blocks not allocated to any file or metadata) is undefined. The content of free blocks can change after additional data is written to the primary file system, but blocks associated with files always display the content they had when the snapshot was created. does not work with Storage Checkpoints. SEE ALSO
dd(1), fs_vxfs(4), vxfsio(7). fscat_vxfs(1M)
All times are GMT -4. The time now is 10:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy