10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi All,
I have almost 200 files in a directory I want to remove all lines in each file that is starting with 88002 and 88003. I tried with grep -v and if I plan to do that I need to for all the files individually and it is 200+ files. Any way I can do at single command
... (4 Replies)
Discussion started by: arunkumar_mca
4 Replies
2. 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
3. Shell Programming and Scripting
HI,
I have the below input file
/* ----------------- cmdsDlyStartFWJ -----------------*/
UNIX_JOB CMDS065J
RUN ANY
CMDNAME sleep 5
AGENT CMDSHP
USER proddata
RUN MON,TUE,WED,THU,FRI
DELAYSUB 02:00
/* "Triggers daily file watcher jobs" */
ENVAR... (5 Replies)
Discussion started by: varun22486
5 Replies
4. 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
5. 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
6. Shell Programming and Scripting
Hi
i have file with data:
abc,*xyz,#abc
123,#123,1234
*123,#123,abc
So i want to remove only fields starting with * and # and i want output as:
abc,,
123,,1234
,,abc
Please suggest something
Thanks
Sumit (3 Replies)
Discussion started by: sumit207
3 Replies
7. Shell Programming and Scripting
hi,,
i hav a file with many lines.i need to remove all lines before a line begginning with a specific pattern from the file because these lines are not required.
Can u help me out with either a perl script or shell script
example:-
if file initially contains lines:
a
b
c
d
.1.2
d
e
f... (2 Replies)
Discussion started by: raksha.s
2 Replies
8. UNIX for Dummies Questions & Answers
how can i remove lines from a text file starting with . (a period) (11 Replies)
Discussion started by: Movomito
11 Replies
9. Shell Programming and Scripting
Hi,
Can anyone suggest me how to remove the file whose name starts with "-".
Say i have a file by name -out. I want to remove this. I tried escaping -, but didnt work.
I work on AIX 5.3 machine.
Thanks in advance.
Suman (5 Replies)
Discussion started by: suman_jakkula
5 Replies
10. UNIX for Advanced & Expert Users
In Unix/Linux when u create a file starting with a - e.g.-file
then when u try to remove or rename it, it is not possible.
e.g. rm -file . when we give this command rm assumes to be its option rather than its argument. Same is the case when this filename is given as an argument to mv or cat and... (2 Replies)
Discussion started by: rahulrathod
2 Replies