![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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 |
| Display Modes | Rate This Thread |
|
|