The first line is variable ann hold quite complicated value. The reason I use the second line is because I don't want to change anything in the third line col1content.
I have been trying to come up with a program that can do this:
Say I have a file named "sir" with a single field;
Code:
10
229
288
35
83
47
3
I want to create a file "gen" with three fields with the data in file "sire" listed in field 1 while field 2 and 3 are just 1 each like this:
Code:
SPARSE 53000 1 1
10 1 1
229 1 1
288 1 1
35 1 1
83 1 1
47 1 1
3 1 1
I have a log-file where at the end of a series of lines you can see if this block is relevant
now I'm looking for a command like sed to delete de blocks ending with "Content-Length: 0" and beginning with the last "--" before this line.
I tried sed -n "/--/,/Content-Length: 0/d" but this takes the first "--" and the first "Content-Length: 0" and deletes it.
ex :
line 1 "--"
line 2
line 3 "
I have a log-file where at the end of a series of lines you can see if this block is relevant
now I'm looking for a command like sed to delete de blocks ending with "Content-Length: 0" and beginning with the last "--" before this line.
I tried sed -n "/--/,/Content-Length: 0/d" but this takes the first "--" and the first "Content-Length: 0" and deletes it.
ex :
line 1 "--"
line 2
line 3 "
Hi All,
Below is a sample command that I can run without any problem in the command line.
Command Line
HTML Code:
dtToday=`date +%Y%m%d`; ls -ltr ./filename_${dtToday}.txt
-rw-r--r-- 1 monuser oinstall 0 Jan 18 11:02 ./filename_20130118.txt
But once I put that command line in file (list.txt) and read from it, an error occurs. Pls.
I would like to write a script that takes something like this:
Line 1
Line 2
Line 3
Line 4
[Blank line]
Line 6
Line 7
Line 8
Line 9
[Blank line]
etc....
And makes it to look like this:
Line 1|Line 2|Line 3|Line 4|[Blank line, if it's easier]
Line 6|Line 7|Line 8|Line 9|[Blank line, if it's easier]
etc.
I would think it would be fairly easy to use two loops, one for the the 5-li
In my app i want to draw line on imageview along with finger.I want the output like the following:
In this screen fish is the imageview and red lines are drawing lines.So I followed the bellow link to develope the app
http://androidrises.blogspot.in/2012/10/draw-line-on-finger-touch.html.This is my code:
public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
hi
i have a requirement to input a string to a shell script and to split the string to multiple fields,
the string is copied from a row of three columns (name,age,address) in an excel sheet.
the three columns (from excel) are seperated with a tab when pasted in the command prompt, but when the
string is assigned to a variable, the tab disappears to a space.
code is given below
Code:
echo
Hi Guys,
I'm making a program that requires a fair amount of user response.
I'm trying to make something like the yum install bit, where it says:
note that ______ is where the system is expecting a user to type in the variable.
Code:
Is that ok? [Yes/No]: _____
So far I can only get it to go under, using the code:
Code:
echo "Is that ok?