05-06-2009
Reverse Contents Issue
Hi Guys,
I am a newbie to Unix. I am having a requirement. I am having a file whose contents are mentioned below:
S.no EmployeeName EmployeeID
1. MAHESH 01
2. SHANKAR 02
3. SATHEESH 03
4. RANJITH 04
5. SYED 05
Actually I want to reverse the order of the fields that is my output should be like this
EmployeeID EmployeeName S.no
01 MAHESH 1.
02 SHANKAR 2.
03 SATHEESH 3.
04 RANJITH 4.
05 SYED 5.
Is it Possible???
Appreciate ur help???
Regards,
Mahesh Raghunandanan
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have users with laptops who may telnet from the local network one minute and then connect remotely a short time later from a different IP address.
This causes a problem as the UnixWare 7.1.1 server appears to try to resolve the remote machine name (via our primary DNS server) to the IP... (4 Replies)
Discussion started by: rm -r *
4 Replies
2. UNIX for Advanced & Expert Users
Hi Guys,
Am new to this forum .... And also to shell scripting
I need a k-shell script to reverse the contents of a file...
Please come up with the solutions...
With regards,
Anand (10 Replies)
Discussion started by: aajan
10 Replies
3. UNIX for Dummies Questions & Answers
Give shell script....which takes two file names as input and compares the contents, is both are same delete second file's contents.....
I try with "diff"...... but confusion how to use "diff" with if ---else
Thanking you (5 Replies)
Discussion started by: krishnampkkm
5 Replies
4. Shell Programming and Scripting
Hi,
I want to delete the contents of a file which are matching with contents of other file in shell scripting.
Ex.
file1
sheel,sumit,1,2,3,4,5,6,7,8
sumit,rana,2,3,4,5,6,7,8,9
grade,pass,2,3,4,5,6,232,1,1
name,sur,33,1,4,12,3,5,6,8
sheel,pass,2,3,4,5,6,232,1,1
File2... (3 Replies)
Discussion started by: ranasheel2000
3 Replies
5. Shell Programming and Scripting
Hi,
I am facing issue while reading data from a file in UNIX. my requirement is to compare two files and for the text pattern matching in the 1st file, replace the contents in second file by the contents of first file from start to the end and write the contents to thrid file.
i am able to... (2 Replies)
Discussion started by: seeki
2 Replies
6. UNIX for Dummies Questions & Answers
I came back to my solaris 10 system after a week of being gone and xterm no longer work. I checked into it and the system doesn't reverse lookup my client system. There is a manual entry for my system in the /etc/hosts file and a forward lookup works fine, but I still can't get reverse lookup. Any... (0 Replies)
Discussion started by: clogan1981
0 Replies
7. Shell Programming and Scripting
Hi one of the output of the command is as below
# sed -n "/CCM-ResourceHealthCheck:/,/---------/{/CCM-ResourceHealthCheck:/d;/---------/d;p;}" Automation.OutputZ$zoneCounter | sed 's/$/<br>/'
Resource List : <br>
*************************** 1. row ***************************<br>
... (2 Replies)
Discussion started by: vivek d r
2 Replies
8. Red Hat
Hi All
I need your valuable help on this. Im trying to setup reverse proxy using apache in rhel 5.5. I just started with Apache, and not much idea about going with advance level config, except that i have tried to set up this reverse proxy based on an online guide i found in internet. The... (0 Replies)
Discussion started by: niyas_gk
0 Replies
9. Red Hat
Hi guys. Ok so let me lay out my configs. I can do a NSlookup from client to server BUT NOT a reverse lookup.
DNS server: Optimus.jaydomain.com
IP : 192.168.1.50
DNS Client: Megatron.jaydomain.com
IP : 192.168.1.60
On Sever:
# cat /etc/named.conf
//
// named.conf
//
// Provided... (4 Replies)
Discussion started by: Junaid Subhani
4 Replies
10. Shell Programming and Scripting
Hallo Team,
I have 2 .csv files file A has 47600 lines and file B has 67000 lines
FILEA
SD0o9rb01-1d320ddbcc8d220f572739ebed5f58d1-v300g00
SD8bt0101-a0810bfe0e3396060126ec51b30dac0a-v300g00
SD05sce01-cb056af347ed4651f29eb3c3e9addbd6-v300g00... (3 Replies)
Discussion started by: kekanap
3 Replies
LEARN ABOUT DEBIAN
gnome2::druidpagestandard
Gnome2::DruidPageStandard(3pm) User Contributed Perl Documentation Gnome2::DruidPageStandard(3pm)
NAME
Gnome2::DruidPageStandard - wrapper for GnomeDruidPageStandard
HIERARCHY
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Container
+----Gtk2::Bin
+----Gnome2::DruidPage
+----Gnome2::DruidPageStandard
INTERFACES
Glib::Object::_Unregistered::AtkImplementorIface
Gtk2::Buildable
METHODS
widget = Gnome2::DruidPageStandard->new
widget = Gnome2::DruidPageStandard->new_with_vals ($title, $logo=undef, $top_watermark=undef)
o $title (string)
o $logo (Gtk2::Gdk::Pixbuf or undef)
o $top_watermark (Gtk2::Gdk::Pixbuf or undef)
$druid_page_standard->append_item ($question, $item, $additional_info)
o $question (string)
o $item (Gtk2::Widget)
o $additional_info (string)
$druid_page_standard->set_background ($color)
o $color (Gtk2::Gdk::Color)
$druid_page_standard->set_contents_background ($color)
o $color (Gtk2::Gdk::Color)
$druid_page_standard->set_logo_background ($color)
o $color (Gtk2::Gdk::Color)
$druid_page_standard->set_logo ($logo_image)
o $logo_image (Gtk2::Gdk::Pixbuf or undef)
$druid_page_standard->set_title_foreground ($color)
o $color (Gtk2::Gdk::Color)
$druid_page_standard->set_title ($title)
o $title (string)
$druid_page_standard->set_top_watermark ($top_watermark_image)
o $top_watermark_image (Gtk2::Gdk::Pixbuf or undef)
widget = $druid_page_standard->vbox
PROPERTIES
'background' (string : default undef : writable)
Background color
'background-gdk' (Gtk2::Gdk::Color : default undef : readable / writable)
Background color as a GdkColor
'background-set' (boolean : default false : readable / writable)
Background color is set
'contents-background' (string : default undef : writable)
Contents Background color
'contents-background-gdk' (Gtk2::Gdk::Color : default undef : readable / writable)
Contents Background color as a GdkColor
'contents-background-set' (boolean : default false : readable / writable)
Contents Background color is set
'logo' (Gtk2::Gdk::Pixbuf : default undef : readable / writable)
Logo image
'logo-background' (string : default undef : writable)
Logo Background color
'logo-background-gdk' (Gtk2::Gdk::Color : default undef : readable / writable)
Logo Background color as a GdkColor
'logo-background-set' (boolean : default false : readable / writable)
Logo Background color is set
'title' (string : default undef : readable / writable)
Title of the druid
'title-foreground' (string : default undef : writable)
Foreground color of the title
'title-foreground-gdk' (Gtk2::Gdk::Color : default undef : readable / writable)
Foreground color of the title as a GdkColor
'title-foreground-set' (boolean : default false : readable / writable)
Foreground color of the title is set
'top-watermark' (Gtk2::Gdk::Pixbuf : default undef : readable / writable)
Watermark image for the top
SEE ALSO
Gnome2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin, Gnome2::DruidPage
COPYRIGHT
Copyright (C) 2003-2004 by the gtk2-perl team.
This software is licensed under the LGPL. See Gnome2 for a full notice.
perl v5.14.2 2011-11-16 Gnome2::DruidPageStandard(3pm)