Search Results

Search: Posts Made By: midin
2,728
Posted By midin
I don't understand it as well. Totally new...
I don't understand it as well.
Totally new file:

$ cat new
echo "$@"
echo $@
echo "$*"
echo $*

./new -r. sh -c "cat tmpfile"

-r. sh -c cat tmpfile
-r. sh -c cat tmpfile
-r. sh -c cat...
2,728
Posted By midin
optargs processing
Hello i'm writing some analyzing script and i'm giving to my program these parameters, for example:

./procinfo -r tmpfile sh -c "cat tmpfile"

where -r is proccessed in getopts and it takes an...
4,109
Posted By midin
Ok, the code from rdcwayx seems to work some way,...
Ok, the code from rdcwayx seems to work some way, but there's a thing that i don't understand, for exmaple in my file I have these lines:

5143 execve("/bin/ls", ["ls"], [/* 38 vars */]...
4,109
Posted By midin
awk joining lines
Hello,
I'm trying to write a piece of code in awk, which should be able recognize by some regexps two lines and then join them together (maybe write them without \n would be enough, I don't know).....
1,974
Posted By midin
Thank you very much, it seems that this regexp...
Thank you very much, it seems that this regexp solved it :)
1,974
Posted By midin
29118 open("/lib64/libc.so.6", O_RDONLY) = 3 ...
29118 open("/lib64/libc.so.6", O_RDONLY) = 3
29120 open("/usr/share/locale/en/LC_MESSAGES/coreutils.mo", O_RDONLY) =3
29119 open("/proc/mounts", O_RDONLY) = 3
29121 open("/usr/bin/my"program",...
1,974
Posted By midin
thank you for an idea, but your solution only...
thank you for an idea, but your solution only works when the filename is normal.. but i have to solve all the situations, that means when a user is some bfu and names some textfile for example...
1,974
Posted By midin
advanced regular expression?
Hello,
I've got to filter some text from a file, where one line looks like this:

29118 open("/lib64/libtinfo.so.5", O_RDONLY) = 3

It's an output from strace as you probably understand and I...
Showing results 1 to 8 of 8

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