Sponsored Content
Full Discussion: Appending multiple files
Top Forums UNIX for Dummies Questions & Answers Appending multiple files Post 302943374 by Don Cragun on Thursday 7th of May 2015 11:57:40 PM
Old 05-08-2015
This forum is for UNIX and Linux system commands. You are not using a shell; you're using "an ETL tool" which does not know how to do wildcard expansions, discards the 3rd word in every command line, and which I assume has other side effects that you have not described.

If you want advice about how to use UNIX and Linux system utilities, we'll be glad to help you. If you want advice about how to use a tool we have never seen, that you have not named, that we have no man page for, and that we have no way to search for it with Google; I have no idea how we can help you.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Appending the two files

hi, I want to append to two files into a third file without new line like this: file 1: I am learning the unix file 2: Unix is very intersting When I am trying cat file1 file2 >> file3 I am getting: I am learning the unix Unix is very interesting But I want that to be in... (3 Replies)
Discussion started by: harish409
3 Replies

2. Shell Programming and Scripting

Appending same tring to multiple files in one line?

I have a string that I need to append to 3 files. Say, $ echo "Hello" I want to append this “Hello” to three files, file1, file2 and file3.The files are all in different directories and the file names have no common pattern.Can I do it in one line? If yes, how? :confused: (2 Replies)
Discussion started by: zombiezparadize
2 Replies

3. Shell Programming and Scripting

reversing and appending data in multiple files

Hello, I have a some files that look like this: 0 3 1 5 2 8 3 7 I want to reverse and append the data so it looks like this: 3 7 2 8 1 5 0 3 0 3 1 5 2 8 3 7 I first thought about using cat and tac cleverly with some redirection and pipe in a one-liner but I couldn't get it to... (1 Reply)
Discussion started by: bigfoot
1 Replies

4. UNIX for Dummies Questions & Answers

Help needed in Appending multiple lines

Hello, There is a log file A.log where new lines are getting added every minute. When ever any new lines are getting added in to A , the same lines needs to be appended to B.log I need to append these newly added lines to end of another file B through a shell script. I tried CAT but its... (2 Replies)
Discussion started by: twisterboy
2 Replies

5. Shell Programming and Scripting

Splitting record into multiple records by appending values from an input field (AWK)

Hello, For the input file, I am trying to split those records which have multiple values seperated by '|' in the last input field, into multiple records and each record corresponds to the common input fields + one of the value from the last field. I was trying with an example on this forum... (4 Replies)
Discussion started by: imtiaz99
4 Replies

6. Shell Programming and Scripting

Appending authorized_keys on multiple servers using ssh

Hi I have an ssh 'for' loop script to login and put a key on multiple servers. I need to append a file on each server but the command which works ok from the prompt does not work via the script. I have cat filename | ssh user@servername "cat >>append.file.name" I have tried to 'spawn' this in... (0 Replies)
Discussion started by: Grueben
0 Replies

7. Shell Programming and Scripting

Copying multiple files and appending time stamp before file extension

Hi, I have multiple files that read: Asa.txt Bad.txt Gnu.txt And I want to rename them using awk to Asa_ddmmyytt.txt and so on ... If there is a single command or more efficient executable please share! Thanks! (4 Replies)
Discussion started by: Jesshelle David
4 Replies

8. UNIX for Beginners Questions & Answers

Appending time stamp for multiple file

Hi All, I am trying to append time stamp to all file with wild character. If you look above I want take all file with wild card *001* and append current time stamp to it. I did below code. But not sure if there is any easy way that can be done in a single step a=date +%s for... (3 Replies)
Discussion started by: arunkumar_mca
3 Replies

9. Shell Programming and Scripting

Appending multiple files through UNIX

Hi All, I have requirement where multiple csv files are present in a directory and each file contains a header.I need to append the contents of all the files into one file by removing header. Once the data is merged in one file ,I need to remove duplicates on nth column to find out distinct... (2 Replies)
Discussion started by: STCET22
2 Replies

10. Shell Programming and Scripting

Appending different columns of multiple files in awk

Hello All, I have three input files cat file1 col1|col2|col3 a|1|A b|2|B cat file2 col1|col2|col3 c|3|C cat file3 col1|col2|col3 d|4|D e|5|E i want below output file4 col1|col2 a|1 (6 Replies)
Discussion started by: looney
6 Replies
NTDBRESTORE(8)						    System Administration tools 					    NTDBRESTORE(8)

NAME
ntdbrestore - tool for creating a NTDB file out of a ntdbdump output SYNOPSIS
ntdbrestore {ntdbfilename} DESCRIPTION
This tool is part of the samba(1) suite. ntdbrestore is a very simple utility that 'restores' the contents of dump file into NTDB (New Trivial DataBase) file. The dump file is obtained from the ntdbdump or tdbdump commands. This tool wait on the standard input for the content of the dump and will write the ntdb in the ntdbfilename parameter. This tool can be used to translate between ntdb and tdb files by dumping and restoring. VERSION
This man page is correct for version 4 of the Samba suite. SEE ALSO
ntdbdump(8), tdbrestore(8) AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed. ntdbrestore was written by Rusty Russell based on tdbrestore, which was initially written by Volker Lendecke based on an idea by Simon McVittie. The ntdbrestore man page was written by Rusty Russell, based on the tdbrestore man page by Matthieu Patou. Samba 4.1 06/17/2014 NTDBRESTORE(8)
All times are GMT -4. The time now is 08:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy