LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 04-03-2003, 05:34 PM   #1
codename000
LQ Newbie
 
Registered: Mar 2003
Posts: 15

Rep: Reputation: 0
tab delimiter


i know that delimiter is set defualt as tab, but if i have to use a delimiter * followed by a tab for the command paste, what can i do??
in C, \t is used, but in shell script?

paste -d'*\t' doc1 doc2? (but the pair of single quotes will disable the \t within them)
or ...??

thx for any help man!
 
Old 04-04-2003, 04:11 AM   #2
tda
Member
 
Registered: Mar 2002
Location: Ukraine, Kiev
Distribution: Mandrake 7.2
Posts: 37

Rep: Reputation: 15
Re: tab delimiter

Quote:
Originally posted by codename000
i know that delimiter is set defualt as tab, but if i have to use a delimiter * followed by a tab for the command paste, what can i do??
in C, \t is used, but in shell script?

paste -d'*\t' doc1 doc2? (but the pair of single quotes will disable the \t within them)
or ...??

thx for any help man!
Can try this truck:

paste --delimiters="*`echo -e \t`"
 
Old 04-04-2003, 07:55 AM   #3
codename000
LQ Newbie
 
Registered: Mar 2003
Posts: 15

Original Poster
Rep: Reputation: 0
um, didn't work man, but thx for the help.
 
Old 04-04-2003, 11:18 AM   #4
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 46
From what I can tall, the paste delimiter is limited to a single "character".
Try this:

Code:
paste doc1 doc2 | awk '{print $1"*""\t"$2}'
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FC 4. Modify ALT+TAB behaviour to CTRL+TAB xtracto Linux - Software 1 09-22-2005 03:06 PM
getline delimiter + move to next line? blizunt7 Programming 3 07-09-2005 01:08 AM
c++ get() delimiter ashirazi Programming 3 08-06-2004 06:26 AM
Redirecting output of tab tab benjaminrtz Linux - General 1 04-28-2003 11:11 AM
sed with delimiter, bourne uribo Programming 17 04-23-2003 02:42 AM


All times are GMT -5. The time now is 06:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration