Search Results

Search: Posts Made By: guitaroa47
2,779
Posted By guitaroa47
yes of course. Er.. I have a text file...
yes of course.
Er..

I have a text file named "test.txt"
which store a text file as follow

1|2|3|4|
2|3|4|5|
3|4|5|6|

and i need to replace those text file into these:...
2,779
Posted By guitaroa47
your command didn't work with me. I'm in...
your command didn't work with me.
I'm in solaris 10.
And after I used your scripts,it said syntax error.

??
2,779
Posted By guitaroa47
If I need this way, How can I do that? From ...
If I need this way, How can I do that?

From

1|2|3|4|
2|3|4|5|
3|4|5|6|
4|5|6|7|

Change to

1|2|3|4|;2|3|4|5|;3|4|5|6|;4|5|6|7|;

Which are
replace "|" at the end of the line to...
2,779
Posted By guitaroa47
Thank you very much :b:
Thank you very much
:b:
2,779
Posted By guitaroa47
If I want to replace txt file with somestring,which way should I go?
If I have txt file named "test.txt" like this

1|2|3|4|
2|3|4|5|
3|4|5|6|
4|5|6|7|

I need to replace a "|"(pipe) at the end of the line with ";"(semicolon)
it will look like this after...
6,576
Posted By guitaroa47
How can I use mathematic calculate in date?
Hi all,
All I need to do is
calculate the system date to my desire date.

My case is
everyday in my system , it will receive ftp file from another unix server.

If I issued 'date' for today...
17,137
Posted By guitaroa47
Thanks all I can do it with wc -l *.dat |...
Thanks all

I can do it with
wc -l *.dat | awk '{print $1"|"$2}'

result are the same that I want
but I need more
the result after use those command will be

1234|test1.dat
2345|test2.dat...
17,137
Posted By guitaroa47
Can I write a string into file from shell?
Hi ,
If I used this
wc -l *.dat ,it will count number of line in these files like this
1234 test1.dat
2345 test2.dat
3456 test3.dat
7035 total

can I add '|'(pipe) in the middle of those...
Showing results 1 to 8 of 8

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