Search Results

Search: Posts Made By: daWonderer
1,468
Posted By daWonderer
excuse me? No, this package contains...
excuse me?

No, this package contains JavaDevelomentKit - not APT...

no & yes
3,762
Posted By daWonderer
another bracket needed for the condition at the...
another bracket needed for the condition at the start?
1,468
Posted By daWonderer
OS suggestion
Hello,

I'm working on a Linux 2.6.32-33-server (Ubuntu 4.4.3).

I typed in man -k package and got e.g. apt

I typed in apt --help and got:
The program 'apt' is currently not installed....
7,264
Posted By daWonderer
I don't understand. If a program tries to...
I don't understand.
If a program tries to write on a disk it doesn't call a system function to get if it is writeenabled? why it doesn't check for this disk setting too?



I tested the...
1,120
Posted By daWonderer
Ok :) you want to seperate into columns...
Ok :)

you want to seperate into columns (delimiter is space)?

awk syntax for defining it are awk -F" " ... or awk '{ FS=" "; }'

now fields in awk are stored in $1,$2, ...

to create...
7,264
Posted By daWonderer
I'm still using Linux 2.6.32-33-server (Ubuntu...
I'm still using Linux 2.6.32-33-server (Ubuntu 4.4.3) here.

I read the hdparm manual and found out to set parameter with this syntax ( -r1 ).

hdparm /dev/sda9 showed readonly set to 0.
...
7,264
Posted By daWonderer
Set readonly
I'm confused using hdparm -r1 /dev/sda9

although it shows readonly set to 1 (on) - I can touch a file and edit and save it.

why?
2,796
Posted By daWonderer
maybe you are right - background processes should...
maybe you are right - background processes should not output something to stdout/terminal.
I just thought about emergency situation of processes in the back..
how to inform the terminal user?
...
1,120
Posted By daWonderer
you first will have to set a field seperator (...
you first will have to set a field seperator ( parameter or variable FS ) in awk. default is "\n".

where is check for value in 2nd column and incrementation of value in array in the command you...
2,796
Posted By daWonderer
hmm... the script should look for running...
hmm... the script should look for running foreground processes on same terminal to prevent this? ;)
there's just one problem left - guess we can not check if some chars already entered into prompt?
2,478
Posted By daWonderer
guess you will be using a script to iterate...
guess you will be using a script to iterate through unknown list of zipped files.

it is possible to use command in a loop with 'for'. for filename in $(ls /thePath/*.gz) ...

in this loop it is...
2,796
Posted By daWonderer
cko 1 & to run in background with endless loop...
cko 1 & to run in background with endless loop (without 1st parameter to run just 1 time)

oh, sorry - didn't put the whole script in here. logvariables are defined - filenames

script creates...
2,478
Posted By daWonderer
maybe you can try 'egrep'. egrep...
maybe you can try 'egrep'.

egrep 'text1|text2'
2,796
Posted By daWonderer
no, the loop should go on - but - after...
no, the loop should go on - but -
after calling 'echo' the prompt in shell I'm working in is gone.
if I type 'return' prompt is back. possible to send this keycode from inside of the script?
2,796
Posted By daWonderer
#!/bin/bash loopy=1 while [ "$loopy" -eq 1 ] ...
#!/bin/bash
loopy=1
while [ "$loopy" -eq 1 ]
do
cnt=0
$( [ create logfile ] )
while read logline
do
chk=$( less $log | grep $logline )
if [ "$chk" == "" ];then
echo...
1,120
Posted By daWonderer
maybe this thread can help a bit:...
maybe this thread can help a bit: https://www.unix.com/shell-programming-scripting/177953-removing-lines-similar-values-file.html

you can create an index-name out of col3+col1.

pseudocode:if...
2,796
Posted By daWonderer
back to prompt
Hello,

I wrote a script that will be run in background and echo some status information from time to time.
after the loop and output I want to get back to prompt automatically.
currently I have...
8,334
Posted By daWonderer
with awk you can use function 'index' to get...
with awk you can use function 'index' to get position of the tag.
'substr' can be used to cut from this position to the end.
another 'index' call will find out next position of '&'.
now you have...
1,464
Posted By daWonderer
thanks, already found out I forgot to set the...
thanks, already found out I forgot to set the path in front of the filename..
2,496
Posted By daWonderer
can you tell more about the string and what to...
can you tell more about the string and what to do?
split after every hex value above D1?
split after every table location pointing to 4th column?
1,464
Posted By daWonderer
1st parameter is the file to show in format in...
1st parameter is the file to show in format in 2nd parameter given..

// Linux version 2.6.32-33-server (Ubuntu 4.4.3-4ubuntu5) //
1,464
Posted By daWonderer
ehm.. no - I usually use this syntax and it works...
ehm.. no - I usually use this syntax and it works :)

the lines don't work are: echo "file: "$l >> af.out
less /tmp/fg.out >> af.outEDIT: OK, as I'm in root directory and look for changes in...
1,464
Posted By daWonderer
Script doesn't append to file
Hello,

I have a script and it doesn't append text to a file:

#!/bin/bash
#set -x
if [ "$1" == "" ]
echo "usage of full text search in files:"
echo "fts filename searchword"
else
cd...
2,522
Posted By daWonderer
I started programming with C and was searching...
I started programming with C and was searching for defined functions in header files (*.h) on this system here.
I also now got another help related using parameter '-exec grep -i word' with 'find'...
2,522
Posted By daWonderer
pipe in command
Hello,

I try to concatenate a command to execute. Sadly it throws an error.

#!/bin/bash
cd /
cmd="find -name *.txt | awk '{ printf "FILE: "$1; system("less "$1);}' | egrep 'FILE:|$1'"
echo...
Showing results 1 to 25 of 84

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