Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
seperate column
Results 1 to 2 of 2

Thread: seperate column

  1. #1

    seperate column

    I have line as

    svar systems 145823 india

    I have to seperate this line and store each colunm in a variable in shell script.

    For example, I have to store as below.
    first=svar
    last=systems
    num=145823
    country=india

    Please, dont say that this can be done using awk cut etc, say with an example.

    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

  2. #2
    Moderator
    Advisor
    redhead's Avatar
    Join Date
    Jun 2001
    Location
    Copenhagen, Denmark
    Posts
    811
    Don't worry Ma'am. We're university students, - We know what We're doing.
    'Ruiat coelum, fiat voluntas tua.'
    Datalogi - en livsstil; Intet liv, ingen stil.

Similar Threads

  1. MYSQL: Changing Column Name
    By Blaqb0x in forum Linux - Hardware, Networking & Security
    Replies: 4
    Last Post: 12-27-2013, 04:42 AM
  2. Mobile Mesh networking with seperate backhaul
    By jschultz in forum General Chat
    Replies: 2
    Last Post: 11-30-2011, 01:21 AM
  3. Dual IPs seperate functions
    By tet3828 in forum Windows - General Topics
    Replies: 0
    Last Post: 07-23-2007, 03:05 PM
  4. Why do we have a seperate Debian subforum
    By Lovechild in forum Announcements and Suggestions
    Replies: 1
    Last Post: 03-01-2006, 04:19 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •