10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I've been struggling with this one for quite a while and cannot seem to find a solution for this find/replace scenario. Perhaps I'm getting rusty.
I have a file that contains a number of metrics (exactly 3 fields per line) from a few appliances that are collected in parallel. To identify the... (3 Replies)
Discussion started by: verdepollo
3 Replies
2. Shell Programming and Scripting
HI Guys,
File A.txt
UID,HD1,HD2,HD3,HD4
1,2,33,44,55
2,10,14,15,16
File B.txt
UID
HD1
HD4
A.txt B.txt >>>Output.txt
UID,HD1,HD4
1,2,55
2,10,16 (11 Replies)
Discussion started by: pareshkp
11 Replies
3. Shell Programming and Scripting
Hello,
I have some tab delimited text files with a three header rows. The headers look like, (sorry the tabs look so messy).
index group Name input input input input input input input input input input input... (9 Replies)
Discussion started by: LMHmedchem
9 Replies
4. Shell Programming and Scripting
I am trying to program a script that is using grep to find lines in a file in my home directory, and then use a pipe command to copy what is shown into different files in a different directory to create backup files. When I run it, though, it only creates a copy of the file that grep was going... (7 Replies)
Discussion started by: sammythesp3rmy
7 Replies
5. Shell Programming and Scripting
Hello Everyone,
I am stuck with one issue while working on abstract flat file which i have to use as input and load data to table.
Input Data-
------ ------------------------ ---- -----------------
WFI001 Xxxxxx Control Work Item A Number of Records
------ ------------------------... (5 Replies)
Discussion started by: sonali.s.more
5 Replies
6. UNIX for Dummies Questions & Answers
/usr/xpg4/bin/grep -e "Type" / datarecords.txt
output
datarecords.txt: male | datarecords.txt: male | datarecords.txt: female
i wanna the output to be
:male | :male | :female
at the end not to appear the filename fom grep command :D :D (3 Replies)
Discussion started by: teefa
3 Replies
7. AIX
I use grep to check for a string that validates data in a file, it works great but the problem is that the file is becoming too big and gerp has started hurting the response time to users. Since I only need to find the first occurrence I have been looking for ways to stop grep for scanning the rest... (8 Replies)
Discussion started by: mpoblete
8 Replies
8. Shell Programming and Scripting
Hi, i have number of files in a directory to be processed. the problem is some of the files does not have a header and the process is giving an error of no header found.
example of good file :
file1
HDR|20080803233401
record 1
record 2
TRA|2
example of a bad file in the same dir
... (6 Replies)
Discussion started by: sitaldip
6 Replies
9. UNIX for Dummies Questions & Answers
Hello
I want to grep data from header of the files . The header conatins data in this format .
# $maint$ test1
# $product$ TTT
I want to store maint name and product name with path of file . (12 Replies)
Discussion started by: getdpg
12 Replies
10. Shell Programming and Scripting
Hey Guys,
Wondering if there is a way to do the following
I have a file called test.txt
abc
def
abc
abc
def
I have a pattern file called pattern.txt containing the following
abc
def
I want to do a count, but have it display the count value preceeding each line like grep -n (2 Replies)
Discussion started by: Jerrad
2 Replies