10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
I have a requirement where I need to combine two lines in a file based on first character of each line in a file.
Please find the sample content of the file below:
Code:
_______________________
5, jaya, male, 4-5-90, single
smart
6, prakash, male, 5-4-84, married
fair
7, raghavi,... (1 Reply)
Discussion started by: jayaP
1 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have a requirement where I need to combine two lines in a file based on first character of each line in a file.
Please find the sample content of the file below:
Code:
_______________________
5, jaya, male, 4-5-90, single
smart
6, prakash, male, 5-4-84, married
fair
7, raghavi,... (1 Reply)
Discussion started by: jayaP
1 Replies
3. Shell Programming and Scripting
Hello All,
I have a file like this
APPLY
( 'INSERT INTO brdcst_media_cntnt (
cntnt_id
,brdcst_media_cntnt_cd
,cntnt_prvdr_cd
,data_src_type_cd
,cntnt_titl_nm
,cntnt_desc
,batch_dt
,batch_id
) VALUES
(
:cntnt_id (3 Replies)
Discussion started by: nnani
3 Replies
4. Shell Programming and Scripting
I have 2 files: phone.txt and mobile.txt
ex. phone.txt
MOBILENO|DISABLE_DATE
919687877754|9/1/2011|
919687877762|9/1/2011|
919687880573|9/1/2011|
919687882658|9/2/2011|
Ex. mobile.txt
MOBILENO |TIME
919687880573|2011-09-17 12:23:40|
919687882658|2011-10-10 21:15:33|... (4 Replies)
Discussion started by: khingx
4 Replies
5. Shell Programming and Scripting
Can you guys help me, I have two files:
File A
60|11111|
601|11111|
6012|11111|
6013|11111|
60142|11111|
File B
642|11111|
659|11111|
852|11111|
6012|11111|
6013|11111|
I want to combine the two file into:
File C
60|642|
601|642|
6012|642| (2 Replies)
Discussion started by: lurak
2 Replies
6. Shell Programming and Scripting
Below are the list of files I have
I want to consolidate the monthly log in the one file
Eg : all the july log to be moved to log_july_full.txt inside the script
Path : /home/user/data/log/
Jun 6 04:08 data_log-2010.05.30-10:04:08.txt
Jun 13 01:38 data_log-2010.06.06-10:04:08.txt... (3 Replies)
Discussion started by: mail2sant
3 Replies
7. Shell Programming and Scripting
Hi, can anybody help me.
I want to combine these two file into one horizontally.
1st File:
...
10:00
10:01
10:02
10:03
10:04
10:05
...
2nd File:
...
0715 10:00 Caps: 50
0715 10:01 Caps: 65
0715 10:02 Caps: 75
0715 10:04 Caps: 50
0715 10:05 Caps: 87 (3 Replies)
Discussion started by: lurak
3 Replies
8. UNIX for Dummies Questions & Answers
I tried to put the history line number and the date into the file with one command, and failed. Can't figure out how to get the date variable substituted for the last space captured.
history | tail -1 | sed -e 's/.\{7\}/&/g' | head -1 | sed 's/ $/$date/'
Result was:
729 $date
So, I... (8 Replies)
Discussion started by: jimbob75
8 Replies
9. Shell Programming and Scripting
Hi Guys,
I have a file as follows:
1 2 3
There are 5 spaces between 1 and 2 and one space between 2 and 3.
I want:
123
How can I do this using awk?
I tried using: (8 Replies)
Discussion started by: npatwardhan
8 Replies
10. Shell Programming and Scripting
Hi Friends,
Is it possible in Unix ?
The requirement is
=============
Create a unix shellscript that combines multiple excel files into one.
Note : it is possible for data files.but the requirement is for excel file (4 Replies)
Discussion started by: bikas_jena
4 Replies