10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
im trying to search for a WORD in a file which
begins with a number
followed by a hypen
follwed multiple words
and end with a dot "."
and pront the entire line which matches the above.
Please note that there is a space at the begining of each line
19458 00000-CONTROL-PARA.... (5 Replies)
Discussion started by: anijan
2. Shell Programming and Scripting
Here is my text data excerpted from the webpage:
My target is to get:
What i tried is:
sed 's/.*\(connector\)/1/' input > output
but all characters coming before the word "connector" are deleted which is not good for me.
My question: (9 Replies)
Discussion started by: baris35
3. Shell Programming and Scripting
I have numerous files which have data in the following format
I want to remove decimal point only if it is last character in a number.
O/p should be
I tried this
sed -e 's/.|/|/g'
Problem... (6 Replies)
Discussion started by: wahi80
4. Shell Programming and Scripting
This is my first post and I'm just a beginner. So please be nice to me.
I have a couple of html files where a pattern beginning with "http://www.site.com" and ending with "/resource.dat" is present on every 241st line. How do I extract this to a new text file?
I have tried sed -n 241,241p... (13 Replies)
Discussion started by: dejavo
5. UNIX for Dummies Questions & Answers
I have a group of files that I need to be sorted by number. I have tried to use the sort command without any luck.
I have tried ls includes*... (6 Replies)
Discussion started by: newbie2010
6. Shell Programming and Scripting
I am trying to check if files staring with filename but ending with diffent dates e.g. filename.2011-10-25.
The code I am using is below
It works find only if one file is present but returns binary operator expected
when there are mulptiple files.
Please help me correcting it. I... (5 Replies)
Discussion started by: ningy
7. Shell Programming and Scripting
Hi! I've a C file which consist of many function definitions with numbers at the beginning as shown below..
10 void search()
90 void func_name()
111 * (7 Replies)
Discussion started by: abk07
8. Shell Programming and Scripting
Title says all :p
Thanks for your help (4 Replies)
Discussion started by: drbiloukos
9. Shell Programming and Scripting
I am new in perl and in regular exprecion; so I am looking for help (or an experienced advise.)
The target is a triming spaces from a string: i.e., remove spases from begining and from end of a string.
One of main point of a searched solution is performance: for current task it is... (2 Replies)
Discussion started by: alex_5161
(gdb)... (1 Reply)
Discussion started by: cdbug