The information of the two files should be redirect to
Third file in such a way that, the third file contain the
information like this.
1st line in third file should be from 1st file
2nd line in Third file should be from 2nd file
3rd line in Third file should be from 1st file
4th line in Third file should be from 2nd file
-
- so on
Answer Posted / karthik c n
paste -d"\n" file1 file2 > file3
Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
What is bash command used for?
What is batch file programming?
How do I set bash as default shell mac?
What is the use of "$#" in shell scripting?
What does $@ mean bash?
How to check if a directory exists?
What is the significance of $#?
What is the way to do multilevel if-else's in shell scripting?
How do I start a shell script?
What is awk in shell script?
What is path variable bash?
What is bash shell command?
What are different types of shell?
How to replace following lines, catch (DAOException e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw new BOException(5122); } catch (BOException e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw e; } catch (Exception e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw new BOException(5122); } Needs to be changed in to, catch (DAOException e) { AppException.handleException (null, null, e, null, null, null, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 5122); } catch (BOException e) { AppException.handleException (null, null, null, e, null, null, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 0); } catch (Exception e) { AppException.handleException (null, null, null, null, null, e, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 5122); }
Is it possible to substitute "ls" command in the place of "echo" command?