Search Results

Search: Posts Made By: sonia102
1,723
Posted By Yoda
I did a quick search on this error and it seems...
I did a quick search on this error and it seems that the most common cause of this error is if you are out of file system space.

So check your file system utilization.
2,400
Posted By hanson44
Or, using grep: $ grep "^[^ ]\+ [^ ]\+ erine "...
Or, using grep:
$ grep "^[^ ]\+ [^ ]\+ erine " temp.x
WWW278545G0240 P.he_model_v1.0 erine 119238 121805 . - . ID=PH01000000G0240;Description="zinc finger, C3HC4 type domain containing protein,...
2,400
Posted By RudiC
Please use code tags as required by forum rules! ...
Please use code tags as required by forum rules!

If it has to be the third column, grep erinealone would not do. Try awk '$3=="erine" {print}' file

Should you want the entire file, incl....
1,178
Posted By Yoda
vgersh99, I see there is one line which is not...
vgersh99, I see there is one line which is not starting with >string hence I didn't use '/^>string/...
1,178
Posted By vgersh99
awk '/^>string/ {$0=$1}1' myFile
awk '/^>string/ {$0=$1}1' myFile
1,178
Posted By Yoda
awk '/string[0-9]/{$2="";}1' file
awk '/string[0-9]/{$2="";}1' file
1,476
Posted By itkamaraj
awk '/string_/{$0=$1}1' input.txt > output.txt
awk '/string_/{$0=$1}1' input.txt > output.txt
1,476
Posted By jim mcnamara
try this: awk '/string/ {print $1; next}...
try this:


awk '/string/ {print $1; next} {print $0}' inputfilename > outputfilename
2,069
Posted By Adhi
You can use tar command with the directory name..
You can use tar command with the directory name..
2,069
Posted By Scott
Sorry, I misread your question. Good answers have...
Sorry, I misread your question. Good answers have been offered already.
2,069
Posted By Yoda
tar -cvf backup.tar backup gzip backup.tar ...
tar -cvf backup.tar backup
gzip backup.tar

Now you will have backup.tar.gz
2,069
Posted By Adhi
Here it is tar -cvzf filename.gz filename
Here it is
tar -cvzf filename.gz filename
Forum: Programming 10-15-2012
1,606
Posted By durden_tyler
What about records that have "model" value 0 ? ...
What about records that have "model" value 0 ?
If you want to update those to 0 (in other words, keep them as they are), or if you are sure such values won't occur in your data, then your UPDATE...
1,493
Posted By spacebar
Try the below example: $ cat t string0...
Try the below example:
$ cat t
string0 positive cd parent=string0 id =121 string0
string0 negative ef parent= string0 id =121 string0

$ sed 's/^string0\t/char7\t/' t
char7 positive cd...
3,221
Posted By alister
What does your data look like exactly? ...
What does your data look like exactly?



Is there or is there not a space before the numeric sequence begins? jim's solution won't give you a numerical sort in either case, but elixir's will if...
2,140
Posted By agama
This will sort the file: sort -k 1n,1...
This will sort the file:


sort -k 1n,1 input-file >output-file


If you want only column one in the output:

awk '{print $1;}' input-file |sort -k 1n,1 >output-file
Showing results 1 to 16 of 16

 
All times are GMT -4. The time now is 01:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy