Output a list of five books with their filename titles into one file
Dear unix forum,
could I output a list of five books with their file name titles into one file?
In order o output all the contents of all the files with their file names there was:
In spite of them being successively named 1Atitle... 2Atitle the two first aren't 1A 2A, but 1A ..5A (2
3 4) They actually are: 1АБетховен.. 5АБетховен... It now breaks all things I hoped.
Could the task be done by head, cat or grep command? Cat has no file name parameter, head can't output the whole file and grep has a file name parameter but it's primary use is searching one line. In find I coulnd't write each file by hand ...
i've got another command awk '{ print FILENAME, $0 }' (it claims to show the filename though it shows it didn't end
Currently I blame the Linux learning curve because of google results and non-answered messages and all that after translation if a nice question directly to English. Isn't that it hard to make more help to design unixes language in that way to be really descriptive and write it as you think.
I'm deeply sorry for that grief!...(
Moderator's Comments:
edit by bakunin: please use CODE-tags for code, as required by the forum rules and refrain from excessive formatting. How is text in one-point size in light cyan against a white background supposed to be read?
Last edited by rbatte1; 02-25-2015 at 06:49 AM..
Reason: Added some ICODE tags too
I have another question. I have access to the books listed below, however I know that not all of them are the lates and greatest and some are over 10 years old. So the question is are most of these books still a good idea to read. Or should I try and pick up the latest and greatest editions?
... (5 Replies)
Hi all,
I have a list of xml file. I need to split the files to a different files when see the <ko> tag.
The list of filename are
B20090908.1100-20090908.1200_CDMA=1,NO=2,SITE=3.xml
B20090908.1200-20090908.1300_CDMA=1,NO=2,SITE=3.xml
B20090908.1300-20090908.1400_CDMA=1,NO=2,SITE=3.xml
... (3 Replies)
A frequently asked question (on this forum and others) is what Solaris books are available. The quality of such books can range from downright awful to "bible-like" textbook. There are sysadmin books, kernel design books, all-in-one references and Sun certification exam books. I've put together a... (0 Replies)
I know this is a simple matter, but I'm new to this.
I have a shell script that calls a sed script from within it. I want the output of the shell script to be based on the input file I pass as an argument to the original script. In other words...
./script.sh file.txt
(script.sh calls sed... (2 Replies)
Hey, guys, scripting newb here. I'm trying to get a list of all .dmg files in a folder and save the output into an array. My first attempt was
ARRAY= ( `ls $REIMAGEPATH | grep \.dmg$` )
However, I understand why that doesn't work now (at least I think I do).
But I don't know what the... (5 Replies)
Hi Friends,
I'm a great fan of this forum... it has helped me tone my skills in shell scripting. I have a challenge here, which I'm sure you guys would help me in achieving...
File A has a list of job ids and I need to compare this with the File B (*.log) and File C (extend *.log) and copy... (6 Replies)
Issue: I am able to split source file in multiple files of 10 rows each but unable to get the required outputfile name. please advise.
Details:
input = A.txt having 44 rows
required output = A_001.txt , A_002.txt and so on. Can below awk be modified to give required result
current... (19 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
A) Write a script, which will take input from a file and convert the number from Centigrade to Fahrenheit... (5 Replies)
Hello,
I am trying to print searched multiple keywords in multiple files.
It is almost okay with the code but the code puts filename in front of each line.
How may I get rid of it?
-grep -A1 'word1' *.txt | grep -A1 'word2' | grep -A1 'word3'
I expect:
Real outcome:
How may I... (3 Replies)
Hi everyone :)
I have a file "words.txt" containing hundreds of lines of text. Each line contains a slogan.
Using the code below i am able to generate an image with the slogan text from each line.
The image filename is saved matching the last word on each line.
Example:
Line 1: We do... (2 Replies)
Discussion started by: martinsmith
2 Replies
LEARN ABOUT CENTOS
xmcreatesimplepopupmenu
XmCreateSimplePopupMenu(library call) XmCreateSimplePopupMenu(library call)
NAME
XmCreateSimplePopupMenu -- A RowColumn widget convenience creation function
SYNOPSIS
#include <Xm/RowColumn.h>
Widget XmCreateSimplePopupMenu(
Widget parent,
String name,
ArgList arglist,
Cardinal argcount);
DESCRIPTION
XmCreateSimplePopupMenu creates an instance of a RowColumn widget of type XmMENU_POPUP and returns the associated widget ID.
This routine creates a Popup menu pane and its button children. The name of each button is button_n, where n is an integer from 0 (zero)
to the number of buttons in the menu minus 1. The name of each separator is separator_n, where n is an integer from 0 (zero) to the number
of separators in the menu minus 1. The name of each title is label_n, where n is an integer from 0 (zero) to the number of titles in the
menu minus 1. Buttons, separators, and titles are named and created in the order in which they are specified in the RowColumn simple menu
creation resources supplied in the argument list.
parent Specifies the widget ID of the parent of the MenuShell
name Specifies the name of the created widget
arglist Specifies the argument list
argcount Specifies the number of attribute/value pairs in the argument list (arglist)
A number of resources exist specifically for use with this and other simple menu creation routines. The only button types allowed in the
XmNbuttonType resource are XmCASCADEBUTTON, XmPUSHBUTTON, XmRADIOBUTTON, XmCHECKBUTTON, XmTITLE, XmSEPARATOR, and XmDOUBLE_SEPARATOR. For
a complete definition of RowColumn and its associated resources, see XmRowColumn(3).
RETURN
Returns the RowColumn widget ID.
RELATED XmCreatePopupMenu(3), XmCreateRowColumn(3), XmRowColumn(3), and XmVaCreateSimplePopupMenu(3).
XmCreateSimplePopupMenu(library call)