10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Guys,
I have a requirement as below
36%/
55%/var
82%/tmp
74%/opt
now i want the output to be
---------------------------------
Disk% Mount
---------------------------------
36% /
55% var
82% tmp
74% opt
----------------------------------------
I have used... (3 Replies)
Discussion started by: AraR87
3 Replies
2. Shell Programming and Scripting
Experts Good day,
I have the following data, file1
BRAAGRP1
A2X
B2X
C2X
D2X
BRBGRP12
A3X
B3X
Z10
D09
BRC1GRP2
LO01 (4 Replies)
Discussion started by: rveri
4 Replies
3. Shell Programming and Scripting
Hi Guys,
I hope you are doing good out there.
I am facing some issues in the alligment of the output of a shell script.
Below is the statement which is formatting the output:echo $File | awk -F '' '{print $13,$15="\t"$16,$4="",$5,$6,$7}'
and its output is Domain Log file ... (2 Replies)
Discussion started by: singh.chandan18
2 Replies
4. Shell Programming and Scripting
Hi Everyone,
# cat 1
#!/usr/bin/perl
print "c\tc\t\n";
# cat 2
#!/usr/bin/perl
print "b\tb\t\n";
print "b\tb\t\n";
print "b\tb\t\n";
# perl 1 > 11
# perl 2 > 22
# cat 11
c c
# cat 22
b b
b b
b b
# paste 11 22 (5 Replies)
Discussion started by: jimmy_y
5 Replies
5. Shell Programming and Scripting
Hello All,
I have been working on a great script to remotely gather server info and store it in a .txt that can be imported to .xls
I have been reading the hostnames that are in the /.shh/known_hosts file so I don't have to mess with passing a password - via ssh (not easy to do , by the... (1 Reply)
Discussion started by: dfezz1
1 Replies
6. Shell Programming and Scripting
Hi All,
I want to shift the last and second last line to 8 spaces in the right inside a file. please can somebody suggest a script for the same.
Thanks and Best Regards,
Shazin (22 Replies)
Discussion started by: Shazin
22 Replies
7. Shell Programming and Scripting
Hi All,
I am using the below scrit to insert lines in a file:
#!/bin/ksh
# To delete the last line if it contains the pattern Redirect permanent / Virgin Atlantic Airways - Popup
echo "Enter the URL that should point to the particular microsite"
read url
# To delete the last line if it... (2 Replies)
Discussion started by: Shazin
2 Replies
8. Shell Programming and Scripting
Hey,
I have 10 lines of text ... And I would like to Insert prefix for each line with static text.
perl -pi -e 's/()/$1 TEST$./' data.txt
Each line will have different static prefix, Code above works perfectly for 1st line ... I'm just not sure how I can run same command for 2nd line 3rd... (4 Replies)
Discussion started by: NDxiak
4 Replies
9. Shell Programming and Scripting
I have a file like this:
host1,neighbor1
host3,neighbor4
host2,neighbor1
host2,neighbor3
host1,neighbor3
host3,neighbor1
host1,neighbor2
host3,neighbor2
I need some PERL magic that will generate output like this:
host1,neighbor1,neighbor3,neighbor2
host2,neighbor1,neighbor3... (3 Replies)
Discussion started by: stateful
3 Replies
10. UNIX for Advanced & Expert Users
I have perl program and I know that while sending an e-mail the following code returns "Remote (/opt/seasoft/db/nervecenter.nms00tst1):"
in an email, I need to take out the entire "opt/seasoft/db/nervecenter" and leave with "ms00tst1" only. How do I do it:
So the output would be "Remote... (3 Replies)
Discussion started by: amir07
3 Replies