Search Results

Search: Posts Made By: sugarcane
4,127
Posted By sugarcane
Grep in ls
Hi Forum,

Please help me. I am stucked in one situation.

I have this variable ME=\'`date "+%h %d"`\' and now i want to list the files like the below:
ls -larth | grep "$ME"

But this is not...
1,838
Posted By sugarcane
Permissions Issue
Hi Experts,

I have one ftp user which will FTP the files to two subdirectories of some other user.

Say i have one user "xyz" . It FTP's the file to the directory of "abc" user. I have added xyz...
7,374
Posted By sugarcane
Hi, Many thanks for your reply. I have also...
Hi,

Many thanks for your reply. I have also tried setfacl -m user:abc:rwx /export/home/xyz/install.


getfacl /export/home/xyz/install
# file: /export/home/xyz/install
# owner: xyz
#...
7,374
Posted By sugarcane
Allow FTP user to access multiple directories
Hi Experts,

I am in urgent need of your suggestions.

I have below two users in my system:

xyz:x:101:101:XYZ System Account:/export/home/xyz:/bin/bash
abc:x:2009:10:ftp user...
4,903
Posted By sugarcane
Okay i got it now. Thanks alot.
Okay i got it now. Thanks alot.
4,903
Posted By sugarcane
okay.. thanks alot.. i just meant that the below...
okay.. thanks alot.. i just meant that the below statements are not clear.
1) It's not a regex, it's a glob.
2) The shell does it. ls is useless here.

Anyways.. i got my answer. Many thanks.
4,903
Posted By sugarcane
hmm.. i didn't understand :(. I want to list...
hmm.. i didn't understand :(.
I want to list the files in the directory with extensions *.txt or *.TXT or both.
In the nutshell, if i have three files a.txt b.TXT c.dat,

ls should list a.txt...
4,903
Posted By sugarcane
regex in ls
Hi Experts,

I am using ls with regex in the below manner:
VAR="*.txt *.TXT"

ls -l $VAR

This is working fine if I have both txt and TXT extension files in my directory. But if any of them is...
3,156
Posted By sugarcane
Many thanks for all your replies. awk is also...
Many thanks for all your replies. awk is also working. But for a big file of around 1 Million records, awk will be faster than sed ?
3,156
Posted By sugarcane
solaris sed equivalent
Hi Experts,

I am using this command to edit the file contents and also add the header to the existing file.

I prepared this command on my VM (Linux) and it worked as I wanted it to work. But on...
3,852
Posted By sugarcane
Thanks all for your help. Even this is...
Thanks all for your help.

Even this is working fine eval ls -l $VAR.. without quotes.
3,852
Posted By sugarcane
Wildcard in ls
Hi Experts,

I want to use ls in the below form:

ls -l *.{txt,TXT} (working fine)

but when i am declaring a variable,

VAR="*.{txt,TXT}"

ls -l $VAR is not working. Please help.

Thanks.
2,628
Posted By sugarcane
Yes, I will check that once i get the access to...
Yes, I will check that once i get the access to any machine. But how i will add the static values at field no. 25 & 28.

Thanks
2,628
Posted By sugarcane
SED/AWK to edit/add field values in a record
Hi Experts,

I am new to shell scripting. Need some help in doing one task given by the customer.

The sample record in a file is as follows:

3538,,,,,,ID,ID1,,,,,,,,,,,

It needs to be the...
Showing results 1 to 14 of 14

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