Search Results

Search: Posts Made By: aishsimplesweet
1,598
Posted By aishsimplesweet
error while executing make file
hi
i am facing a strange error...



whenever i try to execute make file it gives the following error

bash-3.00$ make
usa0300uz1128
sh: syntax error at line 1: `end of file' unexpected...
2,721
Posted By aishsimplesweet
directory size in unix
hi everyone

my q is that i want to know what 's the reason behind the direcotry size in unix

like if i do

ls -ltr

in my home directory it will list all the files and directory .....
6,787
Posted By aishsimplesweet
hi thanks for ur reply can u please...
hi

thanks for ur reply

can u please tell me what would happen because i don't have privilege to create user..
also can i modify the /etc/passwd file through vi editor to make the entry of...
6,787
Posted By aishsimplesweet
user without group
hi

i have vert strange query.. can we add user in unix with out assigned it to any group i mean user which is having no default group or anything..

like this in /etc/passwd file


...
Forum: Programming 10-11-2011
1,493
Posted By aishsimplesweet
pl sql . pattern matching problem
hi everyone
i am facing a strange problem

declare
v_var number(10);
begin
if( regexp_like('RCDORMS_MMS_*_DAR','RCDORMS_MMS_*_DAR'))
then
v_var:=20;


dbms_output.put_line(v_var);
end...
7,336
Posted By aishsimplesweet
Call shell script function from awk script
hi everyone

i am trying to do this

bash> cat abc.sh
deepak()
{
echo Deepak
}
deepak

bash>./abc.sh
Deepak

so it is giving me write simply i created a func and it worked

now i...
880
Posted By aishsimplesweet
regep prblm
hi
please help in this case


$ echo `expr match deepak "*" `
expr: syntax error


$ echo `expr match deepak '*' `
expr: syntax error

$ echo `expr match deepak * `
expr: syntax...
42,217
Posted By aishsimplesweet
hi i solved the problem .. actually the...
hi

i solved the problem .. actually the problem was that
in my project i used to log in from user
abc1 user
but under the

/user directory there was no user whose name was /abc1

only...
1,218
Posted By aishsimplesweet
it is still giving error now on displaying the...
it is still giving error now on displaying the value


-bash-3.00$ abc=deepak
-bash-3.00$ a=1
-bash-3.00$ eval def_${a}=${abc}
-bash-3.00$ echo ${def_${a}}
-bash: ${def_${a}}: bad...
1,218
Posted By aishsimplesweet
variable assignment problem
hi everyone

pls pls help in the query below
it's urgent
pls


-bash-3.00$ abc=deepak
-bash-3.00$ a=1
-bash-3.00$ def_${a}=$abc
-bash: def_1=deepak: command not found




y iti is...
691
Posted By aishsimplesweet
awk problem
hi
i am facing a starange problem below is the explanation



-bash-3.00$ a=7
-bash-3.00$ echo "" | awk ' { b=7 ; print '"${a}"' ; print b ; print index("'"${a}"'", " "b" ") }'
7
7
0
...
2,784
Posted By aishsimplesweet
regular expression exact match
hi everyone

suppose we have two scenario


echo ABCD | grep [A-Z]\{4\}
DATE

echo SYSDATE | grep [A-Z]\{4\}
SYSDATE


i want to match the string of four length only please help
6,237
Posted By aishsimplesweet
gawk is not installed .. nyways leave it ...
gawk is not installed .. nyways leave it
thanks for ur support
really appreciated

i have thing another approach to modify the file ..
thanks once again
6,237
Posted By aishsimplesweet
hey one bad news yaar echo...
hey

one bad news yaar


echo :GAPI-12345 | awk --posix -F"[^A-Z0-9-]" '{for(i=1;i<=NF;i++){if($i~/^[A-Z][A-Z][A-Z][A-Z]-[0-9][0-9][0-9][0-9][0-9]/){print $i} }}'


and it too returns...
6,237
Posted By aishsimplesweet
@above hey it works and ur right...
@above

hey it works
and ur right re-interval is not working here :)

so can u please please explain the sol't and whether it si applicable for all the scenario for my input file
please m...
6,237
Posted By aishsimplesweet
/home $ echo GAPI-53137 | awk --posix...
/home
$ echo GAPI-53137 | awk --posix -F"[^A-Z0-9-]" '{print $1}'
GAPI-53137
/home
$ awk --version



in that case it hangs tried two times smthing is wrong here
6,237
Posted By aishsimplesweet
hey seriously it is not giving me anything ...
hey seriously it is not giving me anything


(amzanjad@q4de3msys05)/home (amzanjad@q4de3msys05)
$ echo GAPI-53137 | awk --posix -F"[^A-Z0-9-]"...
6,237
Posted By aishsimplesweet
@above don't know see below echo...
@above
don't know
see below


echo GAPI-53137 | awk --posix -F"[^A-Z0-9-]" '{for(i=1;i<=NF;i++){if($i~/^[A-Z][A-Z]{3}-[0-9]{5}/){print $i} }}'



does not give me anything when i tested
6,237
Posted By aishsimplesweet
hiii sry for not providing the actual input ...
hiii
sry for not providing the actual input

now here it is

my input file contains the data as


CLF-123454564564564.
this bug no is ABC-1234599
this bug no for bug 222 defiend in...
6,237
Posted By aishsimplesweet
@above many many thanks for ur reply but...
@above

many many thanks for ur reply
but here comes another problem :):(

the problem is u have defined field separator as [a-z] but it could be any like the pattern can be like that also
...
6,237
Posted By aishsimplesweet
hii thanks all for ur reply but the problem is...
hii
thanks all for ur reply but the problem is that
gawk does not work on my machine...:(

i think it is a simple problem because suppose my string is


ABCDE-12345
sdfsdjfhsdABCD-12345...
6,237
Posted By aishsimplesweet
@above i am using solaris also i am not...
@above

i am using solaris also i am not directly fetching from file
i am giving line by line to another awk statement which would then extract the pattern

so please help in this case.
6,237
Posted By aishsimplesweet
@above thanks for ur reply but the...
@above

thanks for ur reply

but the pattern

ABCD-12345 can come anywhere in code and also it can be preceeded with any character between [A-Z]

so i can't use ur solution

i tried...
6,237
Posted By aishsimplesweet
hii many many thanks for reply so hw can...
hii
many many thanks for reply

so hw can we avoid this problem see in my file data can contain like this


ABCDE-12345
abc BCDA-12345
defe erjhj ABCD-12345
dfjfh sdhjh jkfgh dfj...
6,237
Posted By aishsimplesweet
hi thanks all of u for ur reply can u...
hi thanks all of u for ur reply

can u please tell why the below code is failing

echo ABCD-12345 | grep '[^A-Z][A-Z]\{4\}-[0-9]\{5\}'


and it returns nothing
Showing results 1 to 25 of 122

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