- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Using paste command for 2 files
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2005 08:16 AM
тАО08-05-2005 08:16 AM
Using paste command for 2 files
How can I get rid of the space or what command can I use? Another application will be using the Access database to retrieve the URL. So the URL cannot have a space in it. The reason for these files: the daily job announcements and Access database are stored on separate servers. Currently, I'm manually updating the Access database and I won't to automate the process. Thanks in advance for your help!
- Tags:
- paste
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2005 08:31 AM
тАО08-05-2005 08:31 AM
Re: Using paste command for 2 files
this should work...
HTH
UNIX because I majored in cryptology...
- Tags:
- sed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2005 08:35 AM
тАО08-05-2005 08:35 AM
Re: Using paste command for 2 files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2005 08:42 AM
тАО08-05-2005 08:42 AM
Re: Using paste command for 2 files
did you at least try it and see it failing ?
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2005 08:49 AM
тАО08-05-2005 08:49 AM
Re: Using paste command for 2 files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2005 08:51 AM
тАО08-05-2005 08:51 AM
Re: Using paste command for 2 files
is it possible for you to attach these files to a couple of messages here ? I am curious why it did not work ? all the command is doing is replacing a space character with nothing.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2005 08:58 AM
тАО08-05-2005 08:58 AM
Re: Using paste command for 2 files
Try this:
paste file1 file2 | awk '{print $1$2}' > file3
Mel -- I couldn't get your sed command to work either.
- Tags:
- awk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2005 09:04 AM
тАО08-05-2005 09:04 AM
Re: Using paste command for 2 files
Thanks for you help! Have a great weekend!
Yvette
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2005 09:18 AM
тАО08-05-2005 09:18 AM
Re: Using paste command for 2 files
somthing like this should be executed for the sed command to work as I was not able to trp the tab character with \t on the regexp
paste -d "++++++++++++" 1 2 | sed -e "1,1s/+//"
glad you got your result though
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2005 09:26 PM
тАО08-07-2005 09:26 PM
Re: Using paste command for 2 files
try this:
paste -d ' ' file1 file2|tr -d ' '
HTH,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2005 09:33 PM
тАО08-07-2005 09:33 PM
Re: Using paste command for 2 files
paste test.log test1.log | perl -pne 's/\s+//;' > file-text
hth.
- Tags:
- Perl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2005 09:36 PM
тАО08-07-2005 09:36 PM
Re: Using paste command for 2 files
awk '{ ln=$1;getline < "file-url";print $1ln }' file-joa > file-text
hth.