Search Results

Search: Posts Made By: andy2000
2,040
Posted By andy2000
@gandolf989 it works fine! thank you I would...
@gandolf989 it works fine! thank you
I would like to use it in a cron job that starts every 30 min
Is there any way to know, if new files are moved?

---------- Post updated at 02:17 PM...
2,040
Posted By andy2000
yes, unix tools
yes, unix tools
2,040
Posted By andy2000
I think the solution is rsync but I have no...
I think the solution is rsync but I have no experience.
Can I use it on windows? should I install cygwin?
2,040
Posted By andy2000
Best way to move the contents of a folder to another one
what is the best way to move the contents of a folder to another one without deleting the structure of the first one. the contents could include subfolder too.

both folder, the source-folder and...
5,735
Posted By andy2000
@durden_tyler: sorry... it works
@durden_tyler: sorry... it works
5,735
Posted By andy2000
@rdrtx1: your solution doesn't work with more...
@rdrtx1: your solution doesn't work with more than 2 rows :(

a_13;a_2;a_1;a_10
13;2;1;10
23;22;11;100
5,735
Posted By andy2000
@Corona688 it doesen't work @durden_tyler ...
@Corona688 it doesen't work

@durden_tyler it doesen't work
5,735
Posted By andy2000
thank you all
@Corona688: you say "When you say "only first line", what do you mean? Clearly the second line is changed too. "
..and that what I mean

---------- Post updated at 04:24 PM ---------- Previous...
5,735
Posted By andy2000
Rearrange fields of delimited text file
I want to rearrange the fields of delimited text file after sorting first line (only):

input file:

a_13;a_2;a_1;a_10
13;2;1;10
the result should be:

a_1;a_2;a_10;a_13
1;2;10;13
any help...
1,727
Posted By andy2000
thanks bartus11 , your solution is fine,...
thanks bartus11 ,

your solution is fine, but it throws the first line below:

;;;;0;0;0
A;100;Paris;City in Europe;10;10;20
B;101;London;City in Europe;20;20;40
1,727
Posted By andy2000
grouping lines
Hi all,

I have input lines like below:

A;100;Paris;City;10;0;0
A;100;Paris;City;0;10;0
A;100;Paris;City in Europe;0;0;20

B;101;London;City;20;0;0
B;101;London;City;0;20;0...
18,639
Posted By andy2000
scottn, it works fine with (fgrep): cat...
scottn,

it works fine with (fgrep):

cat input_file1 input_file2 etc | fgrep -f pattern_file

the ugly message "virtual memory exhausted" appears no more.

How could u solve the problem with...
18,639
Posted By andy2000
scottn, thank you for your Patience. ...
scottn,

thank you for your Patience.

The first solution:

cat input_file1 input_file2 etc | grep -f pattern_file

returns virtual memory exhausted :-(

The second one:

awk 'NR == FNR {...
18,639
Posted By andy2000
scottn , grep -f pattern_file...
scottn ,

grep -f pattern_file input_file[123] > output_fileX

I get out of memory :-)

"all patterns" means: returns every line that contains any string pattern from the pattern file. And the...
18,639
Posted By andy2000
thank u for your quick replay...but it does not...
thank u for your quick replay...but it does not work ..

I need something faster than the following solution:

for i in `cat pattern_file`
do
grep $i input_file1 >> output_file1
grep $i ...
18,639
Posted By andy2000
Best way to search for patterns in huge text files
I have the following situation:

a text file with 50000 string patterns:

abc2344536
gvk6575556
klo6575556
....

and 3 text files each with more than 1 million lines:

...
000000...
2,057
Posted By andy2000
regular expression..help!!
need regular expression matches:

abc11_efg11_123.xml
abc11_123.xml

Thank you

Andy
2,847
Posted By andy2000
lorcan, but this is not true !!! >And...
lorcan,

but this is not true !!!

>And if you do not want to list the files with the pattern "20070712" you have to follow either the two methods mentioned above.
...
2,847
Posted By andy2000
lorcan, >Do you want an exact pattern that...
lorcan,

>Do you want an exact pattern that matches the files like "abc_20070710_123.txt" ?

yes that what I need.

Thank you

Andy
2,847
Posted By andy2000
kamitsin, how to solve the problem in "regular...
kamitsin, how to solve the problem in "regular expression" not with grep -v ???
2,847
Posted By andy2000
regular expression...help!!
how to list all text files except the files from 20070712:

abc_20070710_123.txt
abc_20070711_123.txt
abc_20070712_123.txt

ls *.txt | egrep"[a-z]+_^20070710_[0-9]+\.txt"

Any idea...
14,160
Posted By andy2000
Jim, please try the command to remove a lot...
Jim,

please try the command to remove a lot of white spaces:

content of file:
<space><space><tab><space><tab><space><tab>hello

Andy
14,160
Posted By andy2000
Sorry, but I 've said: sed 's/^[ \t]*//'...
Sorry, but I 've said:

sed 's/^[ \t]*//' file # works only on Linux but NOT on HP-UX
14,160
Posted By andy2000
sed behavior on hp-ux
the sed command:

sed 's/^[ \t]*//' file

does not work on HP-UX :-( but it works fine on Linux,

content of file:
<tab><tab>hello

output should be:
hello

Any ideas??

Thank you...
4,006
Posted By andy2000
regexp with sed again!!!
please help:

I want to add 1 space between string and numbers:
input file:
abcd12345
output file:
abcd 1234

The following sed command does not work:

sed 's/\([a-z]+\)\([0-9]+\)/\1 \2/'...
Showing results 1 to 25 of 52

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