if need to input a word or anything at the beginning of every file in a directory. how do i accomplish this?
say the file is named hyperten. how do i make hyperten the first line of every file in a given directory?
thanks (6 Replies)
Hi,
I have file a.txt as below. I want to add one string root beginning of each line.
Sample file a.txt
aaa
bbb
ccc
Sample output
Root aaa
Root bbb
Root ccc
Can any one help me on this? (6 Replies)
hey,
i would like to add a line number to the beginning like so:
red
blue
green
yellow
will be:
1=>red
2=>blue
3=>green
4=>yellowplease advise
thank u. (5 Replies)
Well here goes:
I tried to write a batch file that adds a specific fixed text to each line of an already existing text file.
for the adding text infront of each line I tried this:
for /F "delims=" %%j in (list.txt) do echo.STARTTEXT\%%j >> list.txt
for adding text after each line I... (0 Replies)
Well here goes:
I tried to write a batch file that adds a specific fixed text to each line of an already existing text file.
for the adding text infront of each line I tried this:
for /F "delims=" %%j in (list.txt) do echo.STARTTEXT\%%j >> list.txt
for adding text after each line I... (6 Replies)
I want to append file names at the beginning of a line for each row
file content
abc.txt.gz 123|654|987
bcd.txt.gz 876|trf|kjh
I want a single output file with below format
abc.txt.gz|123|654|987
bcd.txt.gz|876|trf|kjh
This one is working but only with unzip files,need to have... (3 Replies)
how to add value/word at the beginning of each line in a file ?
i have file number.txt and the output is below
1000
1001
1002
1003
1004
i want to add 000 at the beginning of each line, desire output is below
0001000
0001001
0001002
0001003
0001004
and so on
please advise how... (5 Replies)
Hi,
I have a specific requirement to add text at the beginning and end of a plain text file. I tried to use "sed" with '1i' and '$a' flags but these required two separate "sed" commands separated with "|".
I am looking for some command/option to join these two in single command parameter.
... (6 Replies)
Discussion started by: bhupinder08
6 Replies
LEARN ABOUT OPENSOLARIS
oplhpd
oplhpd(1M) System Administration Commands oplhpd(1M)NAME
oplhpd - Hot plug daemon for SPARC Enterprise Server line
SYNOPSIS
/usr/platform/SUNW,SPARC-Enterprise/lib/sparcv9/lib/oplhpd
DESCRIPTION
The hot plug daemon for SPARC Enterprise Servers is a daemon process that runs on the SUNW,SPARC-Enterprise family of servers. The daemon
is started by the service management facility (see smf(5)) and communicates with the service processor when hot plug PCI cassettes change
their dynamic reconfiguration state.
The service FMRI for oplhpd is:
svc:/platform/sun4u/oplhpd:default
A domain supports only one running oplhpd process at a time.
ERRORS
OPLHPD uses syslog(3C) to report status and error messages. All of the messages are logged with the LOG_DAEMON facility.
Error messages are logged with the LOG_ERR and LOG_NOTICE priorities, and informational messages are logged with the LOG_DEBUG priority.
The default entries in the /etc/syslog.conf file log all of the OPLHPD error messages to the /var/adm/messages log.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWdcsu, SUNWdcsr |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO svcs(1), inetadm(1M), svcadm(1M), syslog(3C), syslog.conf(4), attributes(5), smf(5)SunOS 5.11 23 May 2006 oplhpd(1M)