10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file similar to the below. I am selecting only the paragraphs with @inlineifset.
I am using the following command
sed '/@inlineifset/,/^ *$/!d;
s/@inlineifset{mrg, @btpar{@//' $flnm >> $ofln
This produces
@section Correlations between
seismograms,,,,}}
... (5 Replies)
Discussion started by: Danette
5 Replies
2. Shell Programming and Scripting
I have two files. One is consisting of one line, with data separated by spaces and each number appearing only once.
The other is consisting of one column and multiple lines which can have some numbers appearing more than once.
It looks something like this:
file 1:
20 700 15 30
file2:
10... (10 Replies)
Discussion started by: maya3
10 Replies
3. UNIX for Dummies Questions & Answers
Hi, I wanted to select the text in gvim using mouse for coping. some times it works fine and full text will be selected and copied to clipboard if it is like shown in first fig. Paste of the copied text can be done by clicking the middle mouse button.
But some times the text will be selected as... (2 Replies)
Discussion started by: twistedpair
2 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
I want to fetch the files based on .done file and display the .csv files and Wil take .csv files for processing.
1.I need to display the .done files from the directory.
2.next i need to search for the .Csv files based on .done file.then move .csv files for the one directory
... (2 Replies)
Discussion started by: girija.g6
2 Replies
5. Shell Programming and Scripting
Hello friends,
How can I use awk commands to obtain selective blocks from different data files. For example
file1
a b c
d e f
g h i
file2
1 2 3
4 5 6
7 8 9
output
a b 2 3
d e 5 6
g h 8 9
is it possible ? (2 Replies)
Discussion started by: rpf
2 Replies
6. Shell Programming and Scripting
Hi,
I have been working on a punch of codes and I got to a problem I hope to get help on. I have some files that I want to work with but the folder has other files in it. For example: The folder contains these files:
path to files: /home/distribution/
ls:
b.10; b.11; b.12; b.20; b.222;... (2 Replies)
Discussion started by: iconig
2 Replies
7. Programming
Hi,
I need your expertise in selecting files from a folder.
I have files named with convention: filename.i.j
where j is an interger from 1 to 16, for each i which is an integer from 1 to 2000.
I would like to select the files with i in regular interval of 50 like
filename.1.j,... (2 Replies)
Discussion started by: rpd25
2 Replies
8. Shell Programming and Scripting
Hi ,
I have a txt file , in which there are multiple lines, I want to add .1cdb before each .txt file.
Source data
DB_SOURCE=DWHCBU
#Generate_file=/root/cbu/src/ET_CDR_SCAN.txt(# is a part of the data)
TARGET=DWHEDW
#Generate_TG_FILE=/root/cbu/src/ET_CDR_SCAN.txt
DB_SOURCE=DWHCBU... (3 Replies)
Discussion started by: mora
3 Replies
9. Shell Programming and Scripting
Hello,
let's start by giving you guys a few examples of the text:
"READ /TEXT123/ABC123"
"READ /TEXT123/ABC123/"
"READ TEXT123/ABC123"
"READ TEXT123/ABC123/"
"READ TEXT123/TEXT456/ABC123"
"READ /TEXT123/TEXT456/ABC123"
"READ /TEXT123/TEXT456/ABC123/"
TEXT and ABC can be and I... (5 Replies)
Discussion started by: TehOne
5 Replies
10. Shell Programming and Scripting
Hi All,
I am creating a script that sends log data from text files to a Database and I will like to read sugestions, as I think that there might be better ways to achive this than with my shell script; maybe perl or I don't know, but I will like to read some sugestions.
The log is from... (10 Replies)
Discussion started by: oconmx
10 Replies