10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
e.g.
File name: File.txt
cat File.txt
Result:
#INBOUND_QUEUE=FAQ1
INBOUND_QUEUE=FAQ2
I want to get the value for one which is not commented out.
Thanks, (3 Replies)
Discussion started by: Tanu
3 Replies
2. Shell Programming and Scripting
I have a combination of patterns to search.
file.txt contains below:
H2016-02-10
A74867712
I1556539758
Xjdflk534jfl
W0000055722327732
W0000056029009389
A74867865
I1556536434
W0000055822970840
W0000055722325916
A74868015
I1556541270
C0000055928920421
E
lines starting with A are... (5 Replies)
Discussion started by: chakrapani
5 Replies
3. UNIX for Dummies Questions & Answers
hello!
could u, please, help:
i have a file that includes 6 columns space delimited
1 rs4477212 0 82154 0 T
1 rs6680825 0 91472 0 G
1 rs9326626 0 570178 0 T
1 rs12123356 0 724702 0 C
I need to extract to a separate file lines... (5 Replies)
Discussion started by: kush
5 Replies
4. Shell Programming and Scripting
OS: RHEL 5.8
I have a text file like below
$ cat mylist.txt
# Multiple entries starting June 1, 2013
#
#
#AGENT
TOUK1TOY1
TOUK1GTF1
ROUK1MET1
TOUK1GTF
TOUK2TOY1
TOUK2GTF
EOUK2GTF1
WOUK1RTO
TOUK1RTO1
GOUK2RTO
KOUK2RTO1 (2 Replies)
Discussion started by: John K
2 Replies
5. Shell Programming and Scripting
consider the contents of a file has many stuff including few stuff that i need.. so i perfromed the below function
cat filename | grep "ALTER TABLE"
its output is as shown below
.
.
.
.
. SET @sql:=CONCAT('ALTER TABLE RecordMixProfile AUTO_INCREMENT=', @maxId) ;
SET... (14 Replies)
Discussion started by: vivek d r
14 Replies
6. Shell Programming and Scripting
Hello,
I am trying to remove all the lines in file except lines starting with [
How can i accomplish this?
Thank you very much in advance. (4 Replies)
Discussion started by: maxo
4 Replies
7. Shell Programming and Scripting
Hi,
I have a file such as:
---
>contig00001 length=35524 numreads=2944
gACGCCGCGCGCCGCGGCCAGGGCTGGCCCA
CAGGCCGCGCGGCGTCGGCTGGCTGAG
>contig00002 length=4242 numreads=43423
ATGCCGAAGGTCCGCCTGGGGCTGG
CGCCGGGAGCATGTAGCG
---
I would like to concatenate the lines not starting with ">"... (9 Replies)
Discussion started by: s052866
9 Replies
8. Shell Programming and Scripting
Hi
I have an input file...
/* ----------------- AGYDLY_Box ----------------- */
insert_job: AGYDLY_Box job_type: b
owner: spdrdev
permission: gx,wx
date_conditions: 1
days_of_week: mo,tu,we,th,fr
exclude_calendar: mtg_holidays
start_times: "1:00"
description: "Process Daily New pools... (2 Replies)
Discussion started by: ramky79
2 Replies
9. Shell Programming and Scripting
Hi,
I need to read one file which excludes the line starting with #.
example file:
#Working directory
WORK_DIR|/home/mypath
#Remote directory
REMOTE_DIR|/home/remote
I am reading this file with the following code,
while read line;
do
KEY=`echo "$line" | cut -d "|" -f 1`
... (5 Replies)
Discussion started by: Kattoor
5 Replies
10. Shell Programming and Scripting
Hi There!
My final task for today is to delete lines starting with certain numbers
for e.g., my text block is
and i want to delete all lines starting with 11 or 17 or 21
I know i can use multiple sed commands like
sed '/^11,/d' <filename>
sed '/^17,/d' <filename>
sed '/^21,/d'... (2 Replies)
Discussion started by: orno
2 Replies