Search Results

Search: Posts Made By: vibhor_agarwali
13,124
Posted By vibhor_agarwali
Thanks Works good with the initial tests. ...
Thanks
Works good with the initial tests.

Will integrate this with our main logic & get back in case of any issues.
Thanks again :)
13,124
Posted By vibhor_agarwali
Bingo, the precise requirement. 1. OS are...
Bingo, the precise requirement.

1. OS are FreeBSD & Ubuntu Linux 12.x
2. Bash
3. Version 3.2.39 & higher
4. That's not a mandate. TrailingPath can or cannot be present in the WholePath
13,124
Posted By vibhor_agarwali
Anything that doesn't require escaping the...
Anything that doesn't require escaping the special characters will be nice.
Awk is not a must & any other utility will do.
Found awk to be giving the best results till now though.
13,124
Posted By vibhor_agarwali
In effect it will require parsing the regular...
In effect it will require parsing the regular expression of awk & escaping it.
It will be the last option as value will be contained in a variable & will be dynamic.

More options up anyone's...
13,124
Posted By vibhor_agarwali
Thanks for the inputs. Both the input string...
Thanks for the inputs.

Both the input string & ERE are dynamically generated.
It's basically a folder path which need to be bisected based on current directory.
Both folder path & current...
13,124
Posted By vibhor_agarwali
Handle special characters in awk -F
Hello Folks,

Need to bisect strings based on a subset.
Below works good.
echo /a/b/c/d | awk -F"/c/d$" '{print $1}'
/a/b

However, it goes awry with special characters.
echo /a/b/c+/d | awk...
Forum: BSD 04-08-2014
22,735
Posted By vibhor_agarwali
The compile jobs are periodic & run by us. Same...
The compile jobs are periodic & run by us.
Same job used to complete in ~3 hrs earlier (a week back) which are now taking ~20 hrs.
No configuration change has happened on the system.

Don't see...
Forum: BSD 04-07-2014
22,735
Posted By vibhor_agarwali
There was a gap. Detail output of top with...
There was a gap.
Detail output of top with processes, this will suffice alone & won't require ps I believe.

last pid: 44000; load averages: 4.20, 4.21, 4.18 ...
Forum: BSD 04-07-2014
22,735
Posted By vibhor_agarwali
Not much of the CPU is being use, a compilation...
Not much of the CPU is being use, a compilation has been triggered.
Earlier it used to complete in ~3 hours which is now taking ~20 hours since last few days.
Here we go.

ps -auwx | head -15...
Forum: BSD 04-07-2014
22,735
Posted By vibhor_agarwali
Very high nice percentage in top command
Hello Folks,

Recently our FreeBSD 7.1 i386 system became very sluggish.
Nothing much is happening over there & whatever is running takes eternity to complete.

All the troubleshooting hinted...
3,592
Posted By vibhor_agarwali
Thanks everybody
Thanks everybody
1,969
Posted By vibhor_agarwali
Is it possible to customize your...
Is it possible to customize your process/application?
Add debugging logs like user id, time, etc for temporarily basis.
3,592
Posted By vibhor_agarwali
Hmm, that will require some digging into Windows...
Hmm, that will require some digging into Windows 7 firewall with respect to XP.
Let's see if we find something.

Please share more thoughts on your preference of VNC for X thing.
Couldn't get it.
3,592
Posted By vibhor_agarwali
X Windows display
Hello Folks,

Have X-Win 32 installed on my desktop.

Earlier when it used to be XP, ran the following commands on unix system:
export DISPLAY=<desktop ip>:0.0
xterm
Above used to work like...
1,732
Posted By vibhor_agarwali
It was pretty simple. Just caught the SIGHUP &...
It was pretty simple.
Just caught the SIGHUP & cleaned up the lock.

So many signals in UNIX.
Thanks for the help :)
1,732
Posted By vibhor_agarwali
Yes they are launched from an SSH session. ...
Yes they are launched from an SSH session.

Let me try capturing the SIGHUP.
Will update soon.

Do you guys read each & every thread?
How did you manage to find the request in middle of a post...
1,732
Posted By vibhor_agarwali
[Solved] Capture network disconnect or hung case
Hello folks,

Have a process which needs to lock files to prevent simultaneous access.
I could catch Ctrl + C, etc signals via the trap command.

Often sessions get hung due to network...
3,582
Posted By vibhor_agarwali
Goodie Lemme try to get this. [^"]* ...
Goodie
Lemme try to get this.

[^"]*
Takes care of all character apart from "

sed (.*) starts matching from backward
\"\(.*\)\".*

So the 1st segment tells there shouldn't be any " before...
3,582
Posted By vibhor_agarwali
String between quotes
Hi,

Need to capture a string between 1st & last quote.

String can be anything like
a b "c" d e
Output: c
a "b c" d e
Output: b c
a "b c" d "e" f
Output: b c d e

sed...
1,775
Posted By vibhor_agarwali
Can somebody explain how does the awk snippet...
Can somebody explain how does the awk snippet work :)
1,775
Posted By vibhor_agarwali
Delete all occurences of a pattern except first
Hi,

Have a flat file like below:
1
2
4
1
2
1
3

Need to delete all duplicate instances.
Output:
1
2
4
3

Can't use "uniq" as it works on a sorted file.
Can't "sort" as need to...
1,450
Posted By vibhor_agarwali
Thanks folks, That explains it.
Thanks folks,
That explains it.
1,450
Posted By vibhor_agarwali
Understanding a regex
Hi,

Please help me to understand the bold segments in the below regex.
Both are of same type whose meaning I am looking for.
find . \( -iregex './[0-9]\{6,10\}.[0-9]/src' \) -type d -maxdepth 2...
1,548
Posted By vibhor_agarwali
Redirect the output of script to a log. Grep...
Redirect the output of script to a log.
Grep that log for your pattern.

Are you looking for something else?
5,082
Posted By vibhor_agarwali
You have to do a workaround. In the ssh...
You have to do a workaround.

In the ssh command, copy your script to tmp & trigger from there.
Showing results 1 to 25 of 313

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