Search Results

Search: Posts Made By: wenclu
3,229
Posted By wenclu
Thanks, it works fine However, I work on the...
Thanks, it works fine

However, I work on the SunOS 5.10 so there is no possibility to run this command..
3,229
Posted By wenclu
Redirect an output from a script to a file and display it at a console simultaneously
Hi,

I'd like to redirect the STDOUT output from my script to a file and simultaneously display it at a console.

I've tried this command:
myscript.sh | tail -f
However, it doesn't end after...
3,670
Posted By wenclu
I'm using the Bash shell, I work on the SunOS 5.9...
I'm using the Bash shell, I work on the SunOS 5.9 OS. I'm just wondering if there is a simple way to create a script which would support an input which contains multiple lines, however, it seems that...
3,670
Posted By wenclu
I just want to move left/right and if it's...
I just want to move left/right and if it's possible also up and down, but honestly I don't have any idea how to achieve the latter. Anyway, thank you for your solution with the -e option
3,670
Posted By wenclu
Hi, Thank you for your replies. However, I...
Hi,

Thank you for your replies. However, I didn't express myself clearly, I just want to be able to move a cursor using the arrow keys while reading an input from a console, because now after...
3,670
Posted By wenclu
Read a multiline text from a console - supporting arrow keys
Hi,

I try to read a multiline text from a console and write it to a file using a bash script. I want to end reading from a console if a user types the [Enter] key twice. I tried this loop:
while...
1,208
Posted By wenclu
thank you very much
thank you very much
1,208
Posted By wenclu
Breaking lines which contains more than 50 characters in a file
Hi,

I have a file which contains many lines. Some of them are longer than 50 chars. I want to break those lines but I don't want to break words, e.g. the file
This is an exemplary text which...
1,168
Posted By wenclu
Thank you very much, it works perfectly!
Thank you very much, it works perfectly!
1,168
Posted By wenclu
Thank you very much, but is it possible to read...
Thank you very much, but is it possible to read from a variable after which line it should be changed? For example I would like to determine in a variable that the "Status" of the "Value B" should be...
1,168
Posted By wenclu
Changing the first occurrence after matching a pattern
Hi,

I got a file which looks like this:
Value A

Status: -
Other: -

Value B

Status: -
Other: -

Value C

Status: -
Other: -
I would like to change only the first line which...
1,166
Posted By wenclu
Thank you very much, it works perfectly!
Thank you very much, it works perfectly!
1,166
Posted By wenclu
I'm sorry, i made a mistake in that place. Of...
I'm sorry, i made a mistake in that place. Of course, it should look like this:

Value 00
--------- ----
A 01
B 02
C 04
Value 01
--------- ----
D 00
E 01
F 02
Value 04
--------- ----
G...
1,166
Posted By wenclu
Thank you very much, it works great! ...
Thank you very much, it works great!

However, I have another question. Is it possible to cut the last column of the file and to use some loop in this gawk function which will print the exact...
1,166
Posted By wenclu
Inserting some text if a field in the last column changes
Hi,

I have a file which looks like this:

A 01 00
B 02 00
C 04 00
D 00 01
E 01 01
F 02 01
G 01 04
H 02 04

I want to insert some text if the field if the last column changes. It should...
1,273
Posted By wenclu
Change/Delete Multiline text
Hi,

I want to change/delete all occurences of a multiline text in a file which match the specific pattern:


aaa <This text should
be changed>bbb
ccc
ddddddd
eee<This text
should be...
2,869
Posted By wenclu
Hi, OS: SunOS 5.9 Gnu Awk (gawk) 2.15,...
Hi,

OS: SunOS 5.9
Gnu Awk (gawk) 2.15, patchlevel 5
2,869
Posted By wenclu
Thank you all very much. However, in my...
Thank you all very much. However, in my enviroment there works only the first sollution:

awk '{if(s == "") {if($0 == "111") { s=$0 FS 555; print s;print "000"} else {print}} else{ print}}' file
...
2,869
Posted By wenclu
Adding text to the end of the specific line in a file(only to the first occurrence of it)
Hi,

I want to add a text to the end of the specific line in a file. Now my file looks like this:

999
111
222
333
111
444

I want to add the string " 555" to the end of the first line...
2,718
Posted By wenclu
Thank you very much, now it works fine
Thank you very much, now it works fine
2,718
Posted By wenclu
Thank you for your quick reply However,...
Thank you for your quick reply

However, there is unmatched ' , wherever I try to put the second ' i receive the output which says that there is an syntax error. Could you please help me with this?
2,718
Posted By wenclu
[Solved] Printing a part of the last line of the specific part of a file
Hi,

I have 80 large files, from which I want to get a specific value to run a Bash script. Firstly, I want to get the part of a file which contains this:

Name =A
xxxxxx
yyyyyy
zzzzzz
aaaaaa...
Showing results 1 to 22 of 22

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