Search Results

Search: Posts Made By: rac
1,103
Posted By RudiC
Try ls *AN??[^E][^X]* *AN??E[^X]* *AN??[^E]X*
Try ls *AN??[^E][^X]* *AN??E[^X]* *AN??[^E]X*
3,826
Posted By vbe
something like ls *|grep -v "$(ls...
something like ls *|grep -v "$(ls ????_????_????_????OP_*.???)" but this is getting ridiculous, why not say exactly what you want : All the requisites and give ALL the information?
3,826
Posted By MadeInGermany
I don't understand. $ ls -1 ...
I don't understand.
$ ls -1
FORM_PTIR_9820_ANFDOP_20150716_00413561.DAT
FORM_PTIR_9820_ANFDOP_20150716_00413561.TXT
FORM_PTIR_9820_ANFDOP_20150716_00413562.DAT...
3,826
Posted By rbatte1
Instead of * which matches zero or more of any...
Instead of * which matches zero or more of any character, you could use ? to indicate a single character, so:-ls *Hello*.txt
ls ??????Hello???.txtThe first will match any files that has Hello...
3,826
Posted By Scrutinizer
You could also use the underscores as markers: ...
You could also use the underscores as markers:
ls *_*_*OP_*.DAT
Although a bit less exact, it will probably get you what you want..
3,826
Posted By MadeInGermany
The unquoted glob-expression is evaluated by the...
The unquoted glob-expression is evaluated by the shell, so you can as well do
echo ????_????_????OP_?????ls -1 (or ls if not seeing an interactive terminal) puts output line by line, that is...
3,826
Posted By Aia
ls...
ls FORM_[0-9][0-9][0-9][0-9]_[A-Z][A-Z][A-Z][A-Z]OP_?.DAT
or
ls FORM_[0-9][0-9][0-9][0-9]_[A-Z][A-Z][A-Z][A-Z]OP_[0-9].DAT
3,826
Posted By cero
Hello, the wildcard for a single character...
Hello,

the wildcard for a single character is ?, so your ls-command would look like this:
$ touch FORM_9757_TYUIOP_1.DAT FORM_9840_OPRTOP_2.DAT FORM_9757_TIRTOP_3.DAT
$ touch XOPX.DAT
$ touch...
6,051
Posted By ygemici
# sed '1d;$d' file|awk 'BEGIN{printf...
# sed '1d;$d' file|awk 'BEGIN{printf "%10s%15s%15s\n","LNR","fcount","fcount(new)"}
{if(length($0)!=7)w="wrong number fo count";printf "%8s%12s%30s\n",NR+1,length($0),w;w=""}'
LNR ...
6,051
Posted By ygemici
# cat file xyz a ab abc abcd abcde ...
# cat file
xyz
a
ab
abc
abcd
abcde
abcdef
abcdefg
abcdefgh
123


# sed '1d;$d' file|awk 'BEGIN{printf "%s%10s\n","LNR","fcount"}{printf "%s%10s\n",NR+1,length($0)}' >newfile
LNR ...
6,051
Posted By vomv1988
I would recommend Bruce Blinn's "Portable shell...
I would recommend Bruce Blinn's "Portable shell programming, an extensive collection of bourne shell examples", along with Seebach's "Portable Shell Scripting: From Novice to Professional" and,...
Showing results 1 to 11 of 11

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