hi
i want to know the way by which i put any file somewhere and it get s started when the system restarts or bots
i mean whenever my system starts that application must also start
thanks (3 Replies)
hi,
Consider there is a file containing 200 lines. please let me know which command is to be used to put a semicolon at the end of each line. if no single command is there then how it can be achieved. (1 Reply)
Hi,
I have the following file,
ABC.txt:
ABC=123
DEF=234
FGH=345
Based on my validation and conditional processing it is observed that i need to comment or append # before DEF=234
so the same file ABC.txt should look as follows
ABC=123
#DEF=234
FGH=345
Sorry if its a... (6 Replies)
Hi,
For my reuirement, I have to read a file from the 2nd line till the last line<EOF>.
Say,
I have a file as test.txt, which as a header record in the first line followed by records in rest of the lines.
for i in `cat test.txt`
{
echo $i
}
While doing the above loop, I have read... (5 Replies)
Hi,
I have some files that i want to concatene and put each of lines of this files on a specific position :
File1
AAAAAAA
BBBBBBB
CCCCCCC
File2
DDDDDDD
EEEEEEE
FFFFFFF
File3
GGGGGG
HHHHHH
IIIIII
New file (6 Replies)
Hi,
I want to read a live log file line by line and considering those line which start from time stamp;
Below code I am using, which read line but throws an exception when comparing line that does not contain error code
tail -F /logs/COMMON-ERROR.log | while read myline; do... (2 Replies)
Hi
This is my first post and I'm just a beginner. So please be nice to me.
I have a couple of html files where a pattern beginning with "http://www.site.com" and ending with "/resource.dat" is present on every 241st line. How do I extract this to a new text file?
I have tried sed -n 241,241p... (13 Replies)
In the bash below I am trying to run the script entire script including the ....(which is a bunch of code) and then in the run function if the user response is y (line in bold). then start processing from execute function. Basically, goto the # extract folder for variable filename line and start... (4 Replies)
My file (the output of an experiment) starts off looking like this,
_____________________________________________________________
Subjects incorporated to date: 001
Data file started on machine PKSHS260-05CP
**********************************************************************
Subject 1,... (9 Replies)
Discussion started by: samonl
9 Replies
LEARN ABOUT DEBIAN
sc_attach
SC_ATTACH(1) BSD General Commands Manual SC_ATTACH(1)NAME
sc_attach -- simple scamper driver.
SYNOPSIS
sc_attach [-?v] [-i infile] [-o outfile] [-p port]
DESCRIPTION
The sc_attach utility provides the ability to connect to a running scamper(1) instance, have a set of commands defined in a file be executed,
and the output be written into a single file, in warts format. The options are as follows:
-? prints a list of command line options and a synopsis of each.
-i infile
specifies the name of the input file which consists of a sequence of scamper(1) commands, one per line. If '-' is specified, com-
mands are read from stdin.
-o outfile
specifies the name of the output file to be written. The output file will use the warts format. If '-' is specified, output will be
sent to stdout.
-p port
specifies the port on the local host where scamper(1) is accepting control socket connections.
-v prints the current revision of sc_attach and exits.
EXAMPLE
Given a set of commands in a file named infile.txt:
tbit -M 1280 -u 'http://www.example.com/' 2620:0:2d0:200::10
trace -P udp-paris -M 192.0.2.1
ping -P icmp-echo 192.0.32.10
and a scamper(1) daemon listening on port 31337, then these commands can be executed using
sc_attach -i infile.txt -o outfile.warts -p 31337
SEE ALSO scamper(1), sc_wartsdump(1), sc_warts2text(1)AUTHORS
sc_attach is written by Matthew Luckie <mjl@luckie.org.nz>.
BSD October 15, 2010 BSD