The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
help with script output okiedokie Shell Programming and Scripting 2 03-05-2009 06:41 PM
Extra output in the script himvat Shell Programming and Scripting 5 11-27-2008 08:19 AM
How redirect script output from inside of script? alex_5161 Shell Programming and Scripting 4 06-25-2008 10:27 PM
Q: Recording shell script screen output using "script" command ? lalfonso.gomez Shell Programming and Scripting 4 01-18-2007 09:31 PM
script the output with awk alexcol Shell Programming and Scripting 4 10-03-2006 06:19 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 06-22-2009
aishwaryakala aishwaryakala is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 2
Unhappy Cut an sql script output

Hi i want to cut the first field of this output obtained form sql script

more dxlocks_test.log.1

SID SERIAL# SPID
---------- ---------- ---------
25 18356 1029
78 39370 1025
136 14361 1027

================================
cut -f1 dxlocks_test.log.1 > compare
================================
more compare
SID SERIAL# SPID
---------- ---------- ---------
25 18356 1029
78 39370 1025
136 14361 1027
==================================
i thought the delimiter was tab, then i tried with space
cut -d' ' -f1 dxlocks_test.log.1 > compare
=================================
more compare

----------




====================================
This is the output.. i want to acutallly want to store each of the SID's in separate variable? So the approach i thought of was to first cut the coloum of sids, and then take 1 sid at a time and assign them in a variable.. can someone help with the cut command or any better way that i should look at
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:08 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0