Skip to main content

All Questions

Tagged with
0 votes
1 answer
115 views

C-Shell - stripping wildcards from user input

I am trying to strip wildcards from user input text in a c-shell script. I realize that the shell automatically expands all wildcards prior to storing the data. Is there a way to isolate the non-...
Eric's user avatar
  • 1
0 votes
0 answers
38 views

In Bash, the `*` is no longer expanded before passing into a command? [duplicate]

Is it different from C-shell? I remember in C-shell, when we do echo * then the * is actually expanded by C-shell to all filenames in the current directory, so echo really doesn't need to do ...
nonopolarity's user avatar
  • 3,109
3 votes
4 answers
8k views

/bin/ls: Argument list too long

I am a biology person and running a program named autodock. I have some files from ZINC library in .mol2 format. As per requirement I need to split this files with the csplit command and I received ...
Ash's user avatar
  • 41
3 votes
1 answer
3k views

Odd alias "find . -name '*\!{*}*' -ls" in Unix Power Tools

From Unix Power Tools 3rd Edition page 175: Article 9.27 shows a way to match directories in the middle of a path. Here's a simpler "find file" alias that can come in very handy: alias ff &...
Wildcard's user avatar
  • 36.8k
1 vote
2 answers
3k views

List files in hierarchy of directory

I need to list files in hierarchy of directory. For that I wrote script like foreach file ( * ) ls ${file}/*/*/*/*/*.root > ${file}.txt end But for this I have to know that in the directory ${...
ramkrishna's user avatar
1 vote
2 answers
159 views

C Shell: different actions depending on the file type

I very new to C Shell. I am trying to read a file from the command line, and determine whether it's a zip file, a .txt, a symbloic link, a pipe, or whatever ("unknown"). Then I'd like to execute a ...
Jack P's user avatar
  • 31
1 vote
2 answers
2k views

Will a '*' (star) in globbing match only characters (i.e , a-z and 0-9)?

I havie a simple question here: does a * (star wildcard) match only characters (letters and numbers) in glob style? Or will it also match special characters? In bash, * matches everything, while in ...
user2720323's user avatar
  • 3,589