Hi,
I'm trying to list specific files and redirecting to a file
ls a[0-9]qp* > temp.lst
but getting "/usr/bin/ls: 0403-027 the parameter list is too long." error. I just have 236 files in the directory.
I tried "ls | grep 'a[0-9]qp*' > temp.lst" too, but nothing was redirected.
+ grep a[0-9]qp*
+ ls
+ 1> temp.lst
+ echo 1
1
When I try the commands in command line it is working fine, but inside the script it is failing.
Could somebody help in this? I got stuck here a quite a while