10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
All,
I have a sample text like below.
Key (Header)
Key1
ABC
Key2
ABC
Key3
ABC
ABC
Key4
ABC
Key5
ABC
ABC
ABC
Required Output
Key (Header)
Key1 (2 Replies)
Discussion started by: ks_reddy
2 Replies
2. Shell Programming and Scripting
Hi,
I'm having trouble in achieving the following scenario. There is a txt file with thousands of lines and few lines are repeated, which needs to be removed using a script.
File.txt
20140522121432,0,12,ram
Loc=India
From=ram@xxx.com, To=ravi@yyy.com,,
1
2
3
4
.
.
30... (18 Replies)
Discussion started by: Gautham
18 Replies
3. Shell Programming and Scripting
apprecieate your help to resove this.
My source file looke like
1001 000 HEADER
1001 001 RAJESH
1001 002 100
1001 002 200
1001 002 500
1001 006 FOOTER
1002 000 HEADER
1002 001 RAMESH
1002 002 100
1002 002 200
1002 002 500
1002 006 FOOTER
my... (8 Replies)
Discussion started by: Ganesh L
8 Replies
4. UNIX for Dummies Questions & Answers
I should preface this by saying I have never worked with shell scripts before so this is all new to me. I was able to make something that worked, but is terribly optimized, and I have no idea how to improve it. If anything it's a pretty hilarious script:
#/bin/bash
get_char() {
... (4 Replies)
Discussion started by: ricco19
4 Replies
5. Shell Programming and Scripting
Hi,
I am new to shell scripting. I need to extract data between repeating tags from an xml file and store the data in an array to process it further.
<ns1:root xmlns:ns1="http://example.com/config">
<ns1:interface>in1</ns1:interface>
<ns1:operation attribute1="true" attribute2="abd"... (2 Replies)
Discussion started by: sailendra
2 Replies
6. Shell Programming and Scripting
Hi all,
I'm using the following script to automated ftp files to 1 ftp servers
host=192.168.0.1
/usr/bin/ftp -vi >> $bkplog 2>&1 <<ftp
open $host
bin
cd ${directory}
put $files
quit
ftp
and the .netrc file contain
machine 192.168.0.1
login abc... (4 Replies)
Discussion started by: varu0612
4 Replies
7. Shell Programming and Scripting
Hi All,
I had a question on something which i have trying to add to my current shell script which does FTP of files from my local machine to a remote server.
I have 5 files which i zip and FTP them on daily basis to a remote server. My script is as below:
############################... (6 Replies)
Discussion started by: bsandeep_80
6 Replies
8. UNIX for Advanced & Expert Users
Hi need urgent help , for creating unix script .
To collect system name,This is command i want to execute n (integer) no. of times for for a differnt IP addresses .IP is variable in every execution.
Other string & collecter name is constant .
snmpGet %IP% sysName.0 -c <string> -S <datacollecter... (2 Replies)
Discussion started by: langdatyagi
2 Replies
9. Shell Programming and Scripting
I have an order file that gets updated periodically on a ftp server.
The file format is "number one-day of the quarter-file number". For example,
the format would look like this for today and would increment as such.
1-26-1
1-26-2
1-26-3
etc
After I grab each oder file, I will rename... (9 Replies)
Discussion started by: cstovall
9 Replies
10. Shell Programming and Scripting
I have written a script that I want to be repeated. The script that I wrote outputs the date, how many people are on the system, how many people logged in before me, and how many people logged in after me. Than what I want it to do is after it outputs the 4 lines I want it to go back to the... (4 Replies)
Discussion started by: Dave2874
4 Replies