Sponsored Content
Full Discussion: Display file name
Homework and Emergencies Homework & Coursework Questions Display file name Post 302560449 by csharp100 on Thursday 29th of September 2011 11:33:00 PM
Old 09-30-2011
Try reading the man pages on sed and grep. It is not as hard as you think. You can use the | (pipe) command.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Display File

I have a file xx like this abc abcd abc abcd abcd efgh ijkl mnop qrst uv wxyz Now I want to search for "abcd". After the last found, it will display the remaining of the file. So here I am expecting something like abcd efgh ijkl mnop qrst uv wxyz (2 Replies)
Discussion started by: joy_deep
2 Replies

2. Shell Programming and Scripting

Display File

I have a file xx like this abc abcd abc abcd abcd efgh ijkl mnop qrst uv wxyz Now I want to search for "abcd". After the last found, it will display the remaining of the file. So here I am expecting something like abcd efgh ijkl mnop qrst uv wxyz (5 Replies)
Discussion started by: joy_deep
5 Replies

3. Programming

Display file

I am making a program in c. I want the progrm to be able to display file names ( like in unix we do long lisiting) what should i do? Any help will be appreciated (3 Replies)
Discussion started by: programlover
3 Replies

4. Shell Programming and Scripting

Grep pattern from different file and display if it exists in the required file

Hi, I have two files say xxx.txt and yyy.txt. xxx.txt is with list of patterns within double quotes. Eg. "this is the line1" "this is the line2" The yyy.txt with lot of lines. eg: "This is a test message which contains rubbish information just to fill the page which is of no use. this is... (3 Replies)
Discussion started by: abinash
3 Replies

5. Shell Programming and Scripting

Grep a pattern given in one file at other file and display its corresponding contents as output.

***************************************** Right now i have this current system. I have two files say xxx.txt and yyy.txt. xxx.txt is with list of patterns within double quotes. Eg. "this is the line1" "this is the line2" The yyy.txt with lot of lines. eg: "This is a test message which... (7 Replies)
Discussion started by: abinash
7 Replies

6. Shell Programming and Scripting

adding rows of a file and display in another file

How to add these all ( 1 1 0 1 1 0 1 0 0 0 1 5 8 0 12 10 25) in the script and How to calculate the GPA?? :wall: For example a course record file can be like this: COURSE NAME: Operating Systems CREDITS: 4 123456 1 1 0 1 1 0 1 0 0 0 1 5 8 0 12 10 25 243567 0 1 1 0 1 1 0 1 0 0 0 7 9 12 15 17 15... (1 Reply)
Discussion started by: poonam29
1 Replies

7. Homework & Coursework Questions

adding rows of a file and display in another file

How to add these all ( 1 1 0 1 1 0 1 0 0 0 1 5 8 0 12 10 25) in the script and How to calculate the GPA?? :wall: For example a course record file can be like this: COURSE NAME: Operating Systems CREDITS: 4 123456 1 1 0 1 1 0 1 0 0 0 1 5 8 0 12 10 25 243567 0 1 1 0 1 1 0 1 0 0 0 7 9 12 15 17 15... (1 Reply)
Discussion started by: poonam29
1 Replies

8. Shell Programming and Scripting

File Name needs to display

I am new to shell scripting plz help me to get solution for below requirement - If name.sh file is present, message will be displayed as “name.sh is present” else "name.sh is not present" I have tested below script but getting error. #!/bin/ksh file_found=`ls name.sh` found=`echo $?` if... (6 Replies)
Discussion started by: rahulbahulekar
6 Replies

9. Shell Programming and Scripting

Display file date after grepping a string in the file

Hi All, I need to recursively grep several folders for a MAC address and display the results with the date of the file name at the start. Even better would be if the final results were displayed chronologically so the newest file is always at the end. Oldest at the top, regardless of what... (8 Replies)
Discussion started by: quemalr
8 Replies
DEBCONF-MERGETEMPLATE(1)					      Debconf						  DEBCONF-MERGETEMPLATE(1)

NAME
debconf-mergetemplate - merge together multiple debconf template files SYNOPSIS
debconf-mergetemplate [options] [templates.ll ...] templates DESCRIPTION
Note: This utility is deprecated. You should switch to using po-debconf's po2debconf program. This program is useful if you have multiple debconf templates files which you want to merge together into one big file. All the specified files will be read in, merged, and output to standard output. This can be especially useful if you are dealing with translated template files. In this case, you might have your main template file, plus several other files provided by the translators. These files will have translated fields in them, and maybe the translators left in the english versions of the fields they translated, for their reference. So, you want to merge together all the translated templates files with your main templates file. Any fields that are unique to the translated files need to be added in to the correct templates, but any fields they have in common should be superseded by the fields in the main file (which might be more up-to-date). This program handles that case properly, just list each of the translated templates files, and then your main templates file last. OPTIONS
--outdated Merge in even outdated translations. The default is to drop them with a warning message. --drop-old-templates If a translation has an entire template that is not in the master file (and thus is probably an old template), drop that entire template. SEE ALSO
debconf-getlang(1) AUTHOR
Joey Hess <joeyh@debian.org> 2012-09-10 DEBCONF-MERGETEMPLATE(1)
All times are GMT -4. The time now is 05:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy