10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I am hoping to pull multiple strings from one file and use them to search within a block of text within another file.
File 1PS001,001 HLK
PS006,010... (11 Replies)
Discussion started by: jvoot
2. UNIX for Dummies Questions & Answers
I need to search for a block with the starting pattern say
"tabId": "table_1", and ending pattern say "]"
and then add a few lines before "]"
how do I achieve it using awk and sed.
Lakshmi (3 Replies)
Discussion started by: Lakshmikumari
3. Shell Programming and Scripting
I am working on a script which should parse a large file called input.txt which contains table definitions, index definitions and comments like these ones:
-- DDL Statements for table "CMWSYS"."CMWD_TEC_SUIVI_TRT"... (12 Replies)
Discussion started by: kiki_riki_miki
4. Shell Programming and Scripting
I want to process a file block by block using sed, and if that block does not contain two patterns, then that complete block has to be printed.
See below for the example data.
running process 1
running... (8 Replies)
Discussion started by: Kesavan
5. UNIX for Advanced & Expert Users
I have a "main" file which has blocks of data for each user defined by tags BEGIN and END.
END (7 Replies)
Discussion started by: grep_me
6. UNIX for Dummies Questions & Answers
I am looking for the way to delete the block of data for example
original file should contain
line5 (3 Replies)
Discussion started by: rakeshkumar
7. UNIX for Advanced & Expert Users
I was reading a book on UNIX internals "The design of the UNIX Operating system." There are two memory structures that are confusing me:
1) Buffer cache
2) Inode cache
My questions are
1) Does a process get both buffer cache and Indoe cache allocated when it opens/creates a file?
2) if no,... (1 Reply)
Discussion started by: sreeharshasn
8. Shell Programming and Scripting
I have a large output file from which I would like to extract a single block of text.
An example block of text is shown below:
***** EQUILIBRIUM GEOMETRY LOCATED *****
COORDINATES OF ALL ATOMS ARE (ANGS)
ATOM CHARGE X Y Z
... (10 Replies)
Discussion started by: marcozd
9. Shell Programming and Scripting
fstab is a configuration
file that contains information
of all the partitions
and storage devices
in your computer.
The file is located under /etc,
so the full path
to this file is /etc/fstab.
The >>>>> characters would be replaced by some texts.
For example if i run a... (5 Replies)
Discussion started by: cola
10. Shell Programming and Scripting
Need to delete a text block inside a file, that is marked with a start and an end pattern. Eg
do not delete
delete everything here
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