Hi guys,
I have been given a small task to do and I am stuck already.
I have to format a file with people's emails address in it ready for pasting into the BCC section of an email.
The file looks like this:-
Code:
bob@ibm.com SMTP BOB SMITH text text text
sue@icl.org SMTP Susy Smith text text
john@eff.org SMTP John Jones text text
..etc..
As you can see fortunately the letters SMTP always o
Hello,
I have a text file which contains a list of strings which I want to grep from another file where these strings occur and print out only these lines.
I had earlier used the grep command
Quote:
grep -f File1 File2
where File1 was the file containing the strings to be grepped (Source File) and File2 the Target File from which the strings ha
I have a 30gb disk image of a borked partition (think dd if=/dev/sda1 of=diskimage) that I need to recover some text files from. Data carving tools like foremost only work on files with well defined headers, i.e.
Hi,
I am trying to extract lines from a text file given a text file containing line numbers to be extracted from the first file. How do I go about doing this? Thanks!
Possible Duplicate:
Show only text between 2 matching pattern
I have a text file with huge content, but just the middle portion of it is of interest to me and I would like to extract it. All the content between the words 'Station Name' and 'Data End' is the required text.
Hi,
I've got a text file with hundreds of lines I need to upload to an API via curl, one by one.
The text file is like:
Code:
2012-08-01 10:45,124
2012-08-02 10:45,132
2012-08-03 10:45,114
I want to get curl to go through the text file sending a post for each line.
like:
Code:
curl --request POST http://website/api/post?apikey=$key\&time=$timestamp\&json={meter1:$data}"
Hi All.
I have a file that contains some special characters and I'm trying to use AWK to search for lines between <pattern1> and <pattern2>.
As an example:
I need the lines between the line containing ' select_id="x_0 ' and the line containing the next instance of ' from '.
How can i insert text at a particular line number or before/after a search pattern? The text i want to insert is of 8-10 lines including new line characters.
Hello
Here is an easy one
Data file
Code:
12345 (tab) Some text (tab) 53.432
23456 (tab) Some longer text (tab) 933.422
34567 (tab) Some different text (tab) 29.309
I need to awk these three tab-delimited columns so that the first two are unchanged (unformatted) and the third shows two decimal places:
Desired output
Code:
12345 (tab) Some text (tab) 53.43
23456 (tab) Some lo