Sponsored Content
Top Forums Shell Programming and Scripting Chmod with spaces and wildcards Post 302983650 by disedorgue on Friday 14th of October 2016 09:51:25 AM
Old 10-14-2016
Hi,
Your problem is not spaces but the not eval of '*'...
Try:
Code:
#!/bin/bash
str="/home/hte4993/tmp/Porg Dir/t_"*.txt
chmod 775 "$str"

But you must have just only one file either you must use a loop.
Regards.
This User Gave Thanks to disedorgue For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Wildcards in VI

I'm trying to delete lines from a large text file using VI. Every line that I am wanting to delete start with 'S' - all others do not. (A list of users) I've tried using * but doesn't seem to like it...any ideas... Doesn't have to be VI - but I'm better with VI than sed/awk. (8 Replies)
Discussion started by: peter.herlihy
8 Replies

2. UNIX for Dummies Questions & Answers

Wildcards and quoting

Hi All In a script, I want a user to enter 4 characters, these can be a mix of letters (uppercase and lowercase) and numbers. In this example $var represents what the user has entered. eg $var can be A9xZ, 3DDL, bbHp .........etc I need to check that the user has only entered characters... (2 Replies)
Discussion started by: Bab00shka
2 Replies

3. Shell Programming and Scripting

Strip leading and trailing spaces only in a shell variable with embedded spaces

I am trying to strip all leading and trailing spaces of a shell variable using either awk or sed or any other utility, however unscuccessful and need your help. echo $SH_VAR | command_line Syntax. The SH_VAR contains embedded spaces which needs to be preserved. I need only for the leading and... (6 Replies)
Discussion started by: jerardfjay
6 Replies

4. UNIX for Dummies Questions & Answers

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 *)? (3 Replies)
Discussion started by: benu302000
3 Replies

5. UNIX for Dummies Questions & Answers

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*.dat > file_names.txt can't figure out whats wrong with that line, any ideas? thanks in advance (10 Replies)
Discussion started by: benu302000
10 Replies

6. UNIX for Dummies Questions & Answers

wildcards NOT

Hi All Please excuse another straightforward question. When creating a tar archive from a directory I am attempting to use wildcards to eliminate certain filetypes (otherwise the archive gets too large). So I am looking for something along these lines. tar -cf archive.tar * <minus all *.rst... (5 Replies)
Discussion started by: C3000
5 Replies

7. UNIX for Dummies Questions & Answers

how to append spaces(say 10 spaces) at the end of each line based on the length of th

Hi, I have a problem where I need to append few spaces(say 10 spaces) for each line in a file whose length is say(100 chars) and others leave as it is. I tried to find the length of each line and then if the length is say 100 chars then tried to write those lines into another file and use a sed... (17 Replies)
Discussion started by: prathima
17 Replies

8. Shell Programming and Scripting

Removing blank spaces, tab spaces from file

Hello All, I am trying to remove all tabspaces and all blankspaces from my file using sed & awk, but not getting proper code. Please help me out. My file is like this (<b> means one blank space, <t> means one tab space)- $ cat file NARESH<b><b><b>KUMAR<t><t>PRADHAN... (3 Replies)
Discussion started by: NARESH1302
3 Replies

9. UNIX and Linux Applications

What is the difference between chmod in solaris and chmod in Linux?

i think it is the same in both... Iam i right? (1 Reply)
Discussion started by: sumaiya
1 Replies

10. UNIX for Advanced & Expert Users

Wildcards

These 2 websites do a GREAT job of explaining different types of wildcards. I learned about the categories of characters which I never knew about at all. GNU/Linux Command-Line Tools Guide - Wildcards GREP (1 Reply)
Discussion started by: cokedude
1 Replies
SLGUI(1)							   User Commands							  SLGUI(1)

NAME
slgui - SooperLooper user interface SYNOPSIS
slgui [-h] [-V] [-l <num>] [-c <num>] [-t <num>] [-H <str>] [-P <num>] [-m <str>] [-L <str>] [-s] [-N] [-E <str>] [-J <str>] [-S <str>] [-T] [-n] DESCRIPTION
SooperLooper is a live looping sampler capable of immediate loop recording, overdubbing, multiplying, reversing and more. It allows for multiple simultaneous multi-channel loops limited only by your computer's available memory. OPTIONS
-h, --help show this help -V, --version show version only -l, --loopcount=<num> number of loopers to create (default is 1) -c, --channels=<num> channel count for each looper (default is 2) -t, --looptime=<num> number of seconds of loop memory per channel -H, --connect-host=<str> connect to sooperlooper engine on given host (default is localhost) -P, --connect-port=<num> connect to sooperlooper engine on given port (default is 9951) -m, --load-midi-binding=<str> loads midi binding from file -L, --load-session=<str> load session from file -s, --force-spawn force the execution of a new engine -N, --never-spawn never start a new engine -E, --exec-name=<str> use name as binary to execute as sooperlooper engine (default is sooperlooper) -J, --jack-name=<str> jack client name, default is sooperlooper_1 -S, --jack-server-name=<str> specify JACK server name -T, --stay-on-top keep main window on top of other applications -n, --never-timeout Never timeout if an engine stops responding SEE ALSO
slconsole(1), slregister(1), sooperlooper(1) AUTHORS
This manual page was written by Alessio Treglia <quadrispro@ubuntu.com> for the Debian project (and may be used by others). SLGUI
February 2010 SLGUI(1)
All times are GMT -4. The time now is 04:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy