10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Experts,
I have created multiple scripts and send the output to new file, getting this output to my mailbox on daily basis.
I would like to send the all outputs to a single file, need to merge all file outputs on a single file.
For example,
Created script for
df -h > df.doc
grep... (7 Replies)
Discussion started by: seenuvasan1985
7 Replies
2. Shell Programming and Scripting
All,
I have an excel sheet Excel1.xls that has some entries.
I have one more excel sheet Excel2.xls that has entries only in those cells which are blank in Excel1.xls
These may be in different workbooks. They are totally independent made by 2 different users.
I have placed them in a... (1 Reply)
Discussion started by: Anamika08
1 Replies
3. Shell Programming and Scripting
Hi All,
Need your inputs for the below.
I have 2 different servers 611 & 610, where i would be running two scripts. And would would be running one script from 611 at every 4 hours to merge the data from the 2 servers into 2 files and send a mail.
so below is the code snippet for 611:
... (3 Replies)
Discussion started by: ss_ss
3 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
I have 2 csv files. 1st file has 10 columns and the 2nd file has 12 columns.
The requirement is, if the 4th column of file1 matches with the 4th column of file2, then append the 12th column of file2 with file1.
Both files have equal number of lines and the 4th column values are... (1 Reply)
Discussion started by: ganesh_248
1 Replies
5. Shell Programming and Scripting
Need some code tweak:
awk 'END {
for (i=1; i<=n; i++)
if (f2])
print f2]
}
NR == FNR {
f2 = $1] = $0
next
}
$1 in f2 {
delete f2
}1' FS=, OFS=, 2.csv 1.csv > 3.csvfile 1.csv have:
$1,$2,$3,$4,$5,$6,$7,$8,$9......
file 2.csv have:
$1,$2,$3,$4,$5,$6 (2 Replies)
Discussion started by: u10
2 Replies
6. Shell Programming and Scripting
The input file:
>cat module1
200611051053 95
200523457498 35
200617890187 57
200726098123 66
200645676712 71
200744556590 68
>cat module2
200645676712 ... (10 Replies)
Discussion started by: winter9
10 Replies
7. Shell Programming and Scripting
Help
I read a file that has 2 fields.
look for in a second file the first field and update it with the second field of first file.
file1
1131518fat11416.txt ../newaod/2001/04/2001-04-00129233-1.txt
file2
INSERT INTO tabric
VALUES... (2 Replies)
Discussion started by: mcarlo65
2 Replies
8. Shell Programming and Scripting
hi experts
please help me,thanks in advance
file1
arch : x86
install : pass
make os : pass
make build kernel : pass=100 failed=45
usb storage pass : The Linux Kernel Archives
file2
arch : ppc
install : failed
make os : http://kernel.org (6 Replies)
Discussion started by: yanglei_fage
6 Replies
9. Shell Programming and Scripting
Hi, guys. I have one question:
I have two files: passwd and shadow (the number of records in these files are not equal)the contents of them are below:
passwd:
**************
ftp:x:24:24:
sshd:x:71:65:
uucp:x:10:14:
brownj:x:5005:1000:
sherrys: x :5006:1000:
...
*************
... (2 Replies)
Discussion started by: daikeyang
2 Replies
10. Shell Programming and Scripting
I've got a file with each record on a separate line and each record contains 34 fields separated by a colon and i'm trying to re-arrange the order of the fields and merge together certain fields separated by a slash (like field7/field28). I tried using an awk print statement like
awk -F: 'BEGIN... (5 Replies)
Discussion started by: RacerX
5 Replies