I want to add lines of text at the top of several files. The text to add:
@LABEL BEGIN
@SET LOGFILE=("/home/bham_mta/rehome_scripts/cmd_file1"
@LOG(LOGFILE)
@SET SWITCH="BH1BSC1"
@CONNECT (SWITCH)
To be added to the top of each file found named rxmop_input*
I tried:
sed '1i@LABEL BEGIN
@SET LOGFILE=("/home/bham_mta/rehome_scripts/cmd_file1"
@LOG(LOGFILE)
@SET SWITCH="BH1BSC1"
@CONNECT (SWITCH)
'
rxmop_input*
But obviously that didnt work. I cant even remember where I got that from. Please guide me....
Beaster
@LABEL BEGIN
@SET LOGFILE=("/home/bham_mta/rehome_scripts/cmd_file1"
@LOG(LOGFILE)
@SET SWITCH="BH1BSC1"
@CONNECT (SWITCH)
To be added to the top of each file found named rxmop_input*
I tried:
sed '1i@LABEL BEGIN
@SET LOGFILE=("/home/bham_mta/rehome_scripts/cmd_file1"
@LOG(LOGFILE)
@SET SWITCH="BH1BSC1"
@CONNECT (SWITCH)
'
rxmop_input*
But obviously that didnt work. I cant even remember where I got that from. Please guide me....
Beaster