10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I have a file as :-
ABC
DEF
GHI
JKL
<BlankLine>
MNO
PQR
STU
VWX
<BlankLine>
YZA
I need it as below:-
ABCDEFGHIJKL;
MNOPQRSTUVWX; (3 Replies)
Discussion started by: jassi10781
3 Replies
2. Shell Programming and Scripting
Hi Guys,
I need to grep below data in this format
backup_id
creation
expiration
policy
sched_label
backup_id = picoserver38_1212077050, version = 2
creation = 05/29/2008 18:04:10 (1212077050)
expiration = 06/29/2008 18:04:10 (1214755450)
retention_level = 3, fragment = 2, file_num = 1... (14 Replies)
Discussion started by: manalisharmabe
14 Replies
3. Shell Programming and Scripting
Hi
I am executing below command to do summation on 46th coloumn.
cat File1| awk -F"|" '{p += $46} END { printf"Column Name | SUM | " p}'
I am getting output as
Column Name | SUM | 1.01139e+10
Here I want output in Proper decimal format. Can someone tell me what change is required for same? (1 Reply)
Discussion started by: sanranad
1 Replies
4. Shell Programming and Scripting
Hello, I have an input file that I need formatted. I was hoping I could use bash to get this done.
Title: Kitchen
Blender
Washer
Dishes
Title: Bathroom
Toilet
Sink
Title: Bedroom
Bed
Desired output would be similar to
Results("Blender","Washer","Dishes") (1 Reply)
Discussion started by: jl487
1 Replies
5. Shell Programming and Scripting
Hi,
I have a file which has xml data but all in single line
Ex -
<?xml version="1.0"?><User><Name>Robert</Name><Location>California</Location><Occupation>Programmer</Occupation></User>
I want to split the data in proper xml format Ex-
<?xml version="1.0"?>
<User>
<Name>Robert</Name>... (6 Replies)
Discussion started by: avishek007
6 Replies
6. Shell Programming and Scripting
There's a small SH script I'm trying to write where it will get the current month and find a log file that is based on the date.
Example: Today is February, so the log file is going to be 201102.log (2011 + 02)
An additional thing is that if today is the 1st of a month, it will also find the log... (3 Replies)
Discussion started by: kooshi
3 Replies
7. Shell Programming and Scripting
Hi am using uuencode fro attaching one report which is nothing but sql query output.
But when i receive the report through attachement and when it is opened the report is not displayed in proper format. Means if the sql query has 100 rows the mail attachment report displays the report in 2... (2 Replies)
Discussion started by: weknowd
2 Replies
8. Shell Programming and Scripting
I'm trying to use Awk to get the id and name fields ($1 and $2) of file1 combined with their corresponding multiline records in file2 that are separated by blank line. Both files are ordered so that the first line of file1 corresponds to the first set of multiline records in file2 and so on.
... (4 Replies)
Discussion started by: RacerX
4 Replies
9. Programming
Problem background:
gcc v 4.1
2 .cpp files, 2 .h files
Files:
main.cpp
a.cpp
a.h
b.h
Organization:
main.cpp includes a.h (because it calls a.cpp code)
a.cpp includes a.h
a.h includes b.h (because a class in a.h uses a b.h class)
There is no inheritance between a.h or b.h or any of... (1 Reply)
Discussion started by: johnqsmith
1 Replies
10. Shell Programming and Scripting
Hi,
We run an application called meta which reads user information from database and updates in LDAP.For that we have some scripts to check the uniqueness of mail ids between the existing LDAP and Database.It works fine when people enter mail ids in proper format (xxx.yyy@abc.com) but if it... (2 Replies)
Discussion started by: prolay
2 Replies