Search Results

Search: Posts Made By: sugarcane
4,136
Posted By hergp
Too much quoting :-) Try ME=`date...
Too much quoting :-)

Try


ME=`date "+%h %d"`
4,136
Posted By itkamaraj
$ D=$(date "+%h %d") $ ls -larth | grep...
$ D=$(date "+%h %d")
$ ls -larth | grep "$D"
7,452
Posted By gull04
Hi, Add user "abc" to group "101" and ensure...
Hi,

Add user "abc" to group "101" and ensure that group write is on on the directory.

Regards

Dave
4,944
Posted By Corona688
1) It's not a regex, it's a glob. 2) The shell...
1) It's not a regex, it's a glob.
2) The shell does it. ls is useless here.

It's true. Try it:

VAR="*.txt *.TXT"
echo $VAR

Do you need to find .txt OR .txt? Or do you need to find both?
3,257
Posted By Corona688
I don't know if solaris has an exact equivalent,...
I don't know if solaris has an exact equivalent, but it's simple enough to rewrite that command in plain awk without nonstandard extensions. There's nothing in there that really needs sed, extended...
3,257
Posted By yazu
Try: 1. Use ordinary quotes instead of double...
Try:
1. Use ordinary quotes instead of double ones.
2. Insert a literal newline after "i" command.

sed -e 'i\
H,0001' -e 's/$/,1,2/' abc > abc.tmp
Showing results 1 to 6 of 6

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