Search Results

Search: Posts Made By: benu302000
9,809
Posted By benu302000
actually, when I created the file, that top line...
actually, when I created the file, that top line was there, -f flag and all
9,809
Posted By benu302000
Ok, I'm really new to Unix scripting, lemme put...
Ok, I'm really new to Unix scripting, lemme put up the entire file, and maybe that'll help more

#! /bin/sh -f
#This script is designed to be run one level higher than the
#directory of the day...
9,809
Posted By benu302000
I tried set +f and I get set: variable name...
I tried set +f and I get

set: variable name must begin with a letter
4,246
Posted By benu302000
the line specifically is ls [A-Z]*.dat ...
the line specifically is

ls [A-Z]*.dat

it throws an error over the *
9,809
Posted By benu302000
I'm using bourne shell
I'm using bourne shell
4,246
Posted By benu302000
wildcards
when writing a shell script (bourne) and using a unix command like 'ls' is there anything special you need to do to use a wildcard (like *)?
9,809
Posted By benu302000
I think it has something to do with the *...
I think it has something to do with the * character, because I just tried

ls *.dat > file_names.txt

and I know there are .dat files in there
is there an escape character I need? or some...
9,809
Posted By benu302000
ls with wildcards
ok, I'm trying to write a script file that lists files with specific elements in the name into a txt file, it looks like this

ls s[A-Z]*.dat > file_names.txt

can't figure out whats wrong with...
1,804
Posted By benu302000
Ah, Didn't even realized those existed until now,...
Ah, Didn't even realized those existed until now, thank you
1,804
Posted By benu302000
Problems with expr
I'm writing a unix script that simply does some basic command line stuff for a whole lot of similar directories (ls *.dat > foo.bar). Its my first script ever, and its going ok, except I can't, for...
Showing results 1 to 10 of 10

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