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
Ok, I should know how to do this...
I want to run crontab -l and pipe it through sed so that only those lines that do not have a # as the first character show on the screen... I know Ive doen this before but its been a decade since I scripted anything
Im working in AIX 7.1 using the crontab... (3 Replies)
Discussion started by: immagikman
3 Replies
5. UNIX for Dummies Questions & Answers
I came across the following behaviour in Solaris 10 (x86-64bit) and RHEL 5.6 (Tikanga)
-a option in ls command is supposed to list all files starting with a dot.
From the man page of ls
-a, --all
do not ignore entries starting with .
$ touch .mytestfile
$ vi .mytestfile
$... (2 Replies)
Discussion started by: kraljic
2 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