I'm scratch my head to find a solution to my problem, I'm absolutely sure this is very simple!!!
I'm using the tcpdump to show on the screen in real time the UCP traffic:
The output will be something like:
Now, the first chars (coming from TCP stack) is always different, but have always the same lenght (24 chars).
Is there a way to remove that chars adding a filter directly to the primary command??
Like starting output from 25th char and show on the screen something like: ?
And also, is it possible to have a CR between each lines, like:
Last edited by Lord Spectre; 07-08-2011 at 04:39 AM..
I will appreciate if you help me here in this script in Solaris Enviroment.
i have 2 files :
2)... (10 Replies)
I have a log file which have a date and time at the start of every line.
I need to search the log file starting from a specific time to the end of file.
Starting point: July 29 2018 21:00:00
End point : end of file
My concern is what if the pattern of `July 29 2018 21:00:00`... (3 Replies)
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)
I have a file called "INPUT" which takes the following format
Now i got to find the displacements of the account numbers of each field of a file.
For the field MNT-BANK-NUMBERO:006,00:N, the... (4 Replies)
I want to remove the trailing spaces at the end of each line starting from a particular position(using ksh script). For example, in the attached file, I want to remove all the spaces starting from the position 430 till the end. The space has to be removed only from the 430th position no matter in... (3 Replies)
I woud like to substitue a string on a specific position for specific lines
I've got a file and I would like to change a specific string from "TOCHANGE" to "ABCABCAB"
For every line (except 1,2, 3 and the last one) , I need to check between the 9th and the 16th digits.
For the 3rd line, I... (7 Replies)
I have a txt file having rows and coulmns, i want to perform some operation on a specific coulmn starting from a specific line.
50.000000 1 1 1
3.69797533E-07 871.66394 ... (3 Replies)
I'm new to shell scripting and hence this query.
I have 2 files. temp.txt and config.txt.
The values in temp.txt are tab separated.
AB CDE GHIJ OPQRS WXY
ex:config.txt (1st line for 1st element of temp.txt and so on)
start = '1' end='5'
start = '6' end =... (26 Replies)
I am trying to use sed to replace specific characters at a specific position in the file with a different value... can this be done?
Need to replace 99999 in positions 3-7 with 88888.
Any help is appreciated. (5 Replies)