Search Results

Search: Posts Made By: azapp51
3,165
Posted By azapp51
Ah great that works perfectly!!! Thanks so much...
Ah great that works perfectly!!! Thanks so much for this information!
3,165
Posted By azapp51
The last post I was trying from you was this I...
The last post I was trying from you was this I thought:


$ cat sample6.txt | tr "." "~" | awk -F"/" '{if (match($NF,"~")==0) print $0}' | tr "~" "."
3,165
Posted By azapp51
When I type in: ls -1 *\*\*\HOSPCHK* ...
When I type in:


ls -1 *\*\*\HOSPCHK*


I see the files no problem

when I type in:


$ cat *\*\*\HOSPCHK*

or

$ cat HosPCHk020111.dtl

returns no files found
3,165
Posted By azapp51
Command: ls -1 *\*\*\HOSPCHK* Results: ...
Command:
ls -1 *\*\*\HOSPCHK*

Results:
There are only two files that meet the criteria at this current time:

xxx_xxxxx.xxxxxx/ap155/1/HOSPCHK020111
xxx_xxxxx.xxxxxx/ap155/1/HOSPCHK020111.dtl
3,165
Posted By azapp51
Yes sorry for the confusion...the first sub...
Yes sorry for the confusion...the first sub directory is med_nathon.johnson/pp155/1/HOSPCHK020111 there is a period between the nathon and the johnson...which isn't consistent with the other sub...
3,165
Posted By azapp51
I am running it from the Lawson Desktop...
I am running it from the Lawson Desktop client..via a script
3,165
Posted By azapp51
Command: ls -1 *\*\*\HOSPCHK* | awk -F. '{...
Command:
ls -1 *\*\*\HOSPCHK* | awk -F. '{ print NF $2}'
produces two results
2xxx/xxxx/xxxx/HOSPCHK020111
3xxx/xxxx/xxxx/HOSPCHK020111

The reason I am using the *\*\*\ is because the file...
3,165
Posted By azapp51
1st command: ls -1 *\*\*\HOSPCHK* ...
1st command:
ls -1 *\*\*\HOSPCHK*

Returns:

xxxx/xxxx/xxxxx/hospchk020111
xxxx/xxxx/xxxxx/hospchk020111.dtl

2nd Command:
ls -1 *\*\*\HOSPCHK* | awk -F. '{if ($2<="") print $1}'
...
3,165
Posted By azapp51
Yep when I do the ls-1 *\*\*\HOS* I get about 6...
Yep when I do the ls-1 *\*\*\HOS* I get about 6 files. It includes the file I want but also includes 5 files with extentions on it.
3,165
Posted By azapp51
I tried ls -1 HOSPCHK* | awk -F. '{if ($2<="")...
I tried ls -1 HOSPCHK* | awk -F. '{if ($2<="") print $1}' and it didn't seem to find it...also tried ls -1 *\*\*\HOSPCHK* | awk -F. '{if ($2<="") print $1}'. Checked the directory to make sure the...
3,165
Posted By azapp51
When I do the wildcard it picks up the files with...
When I do the wildcard it picks up the files with the extensions. I was looking at things like '/\./' but I am a true newbee and couldn't get that to work...also playing with the grep but no luck.
3,165
Posted By azapp51
Find a file that could have different endings
Hello all. Hope you can help. I am looking for a complete command to search for a file named HOSPCHK. The file could be listed with numbers after it like [0-9] it could be listed with letters...
Showing results 1 to 12 of 12

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