Search Results

Search: Posts Made By: murugesandins
1,957
Posted By murugesandins
// Written comment for new employees/joinees and...
// Written comment for new employees/joinees and for me too :) => Better initialize
#include <string.h> // strerror
#include <sys/errno.h> // errno
#include <unistd.h> // getcwd
#include...
2,128
Posted By murugesandins
for EachFile in $(/usr/bin/find ./ -maxdepth 1...
for EachFile in $(/usr/bin/find ./ -maxdepth 1 -type f | /bin/sed "s/ /SPACEERRORHANDLER/;")
do
CURRENTFILE=$(echo "$EachFile" | /bin/sed "s/SPACEERRORHANDLER/ /g;")
if [ -f...
1,957
Posted By murugesandins
You can search for files or directories using...
You can search for files or directories using /usr/bin/find command
Sample:

$ /usr/bin/find -maxdepth 1 -inum 4222124650820299
.
$ /usr/bin/find -maxdepth 1 -inum 4222124650820299 -exec /bin/ls...
2,446
Posted By murugesandins
Good comment from Robin. Instead of using...
Good comment from Robin.


Instead of using SIGTERM you can use other signal.
Following comment is only a sample:
C or CPP code using SIGUSR1 signal

when receiving SIGUSR1 it is writing...
1,496
Posted By murugesandins
116268178 + 4 needs to be 116268182 ? Having...
116268178 + 4 needs to be 116268182 ?
Having doubt on requirement?


/bin/awk 'BEGIN {
FS=OFS="\t";
}
match($NF,$(NF-1)) {
$3+=RLENGTH;
$3=$3OFS$3;
} 1' ./Input_file
1,217
Posted By murugesandins
You can use /bin/egrep or /bin/grep -E $...
You can use /bin/egrep or /bin/grep -E

$ /bin/egrep "19\/Jun\/2018:07:04|21\/Jun\/2018:21:30" datafile | /bin/egrep -v "^$"
41.27.21.19 - - [19/Jun/2018:07:04:28 +0000]
41.27.21.19 - -...
1,090
Posted By murugesandins
Required output: First output line having ...
Required output:
First output line having

Name="ALPHA"


Second output line having

Name="MNC"


input.txt having following lines
>> Name= XYZ
>> Name=MNC
Requirement lines are...
Showing results 1 to 7 of 7

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