03-25-2008
Well i got a somewhat fix if anyone comes along a similar problem
IFS=$'\n'
in the begining of file to change the delimiters
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi there,
our unix and windows are related. i.e. if i save a file while being on windows my unix profile would contain the same file, at the same location. so i can access all my files through unix prompt. but if i save a file/folder being on windows account and put spaces between the name of... (3 Replies)
Discussion started by: a25khan
3 Replies
2. Shell Programming and Scripting
I am accessing two files. I am using read command to read from the files.
For the first file, I need read the fields delimited by spaces, and for the other file, I need to read the whole line as a single field including the spaces.
When I used read command for the second file, the spaces... (4 Replies)
Discussion started by: kumariak
4 Replies
3. Shell Programming and Scripting
Hi
I am having difficulty copying files from one dir to another due to a space in the names of the file with an extension .rtf
There are a group of files and the command am using is
cp `ls -rt /wlblive/home/whiops/ops/RTFs/*.rtf|head -20` /wlblive/home/jamshed
Since the files are... (3 Replies)
Discussion started by: jamshedj
3 Replies
4. Shell Programming and Scripting
Hello, I'm a computer science major and I'm having problems dealing with file names with spaces in them. Particularly I'm saving a file name in a variable and then using the variable in a compare function i.e.
a='te xt.txt'
b='file2.txt'
cmp $a $b
If anyone could help me with this particular... (10 Replies)
Discussion started by: jakethegreycat
10 Replies
5. UNIX for Dummies Questions & Answers
Hi
I am a newbie to unix. I have a current script that reads a directory for excel files and renames the files. There is a problem now because some of the files have spaces. If I put quotes on the file, it will work but I dont know how to read all the files with quotes.
Variables
$1 =... (6 Replies)
Discussion started by: Lillyt
6 Replies
6. Shell Programming and Scripting
I have a script that I've written and it's been running fine until someone dropped a file in the source directory that had spaces in it. The script breaks the file name into separate mv commands. I've tried putting " around the $FILE but that didn't help. Anyone who can help me would be greatly... (8 Replies)
Discussion started by: Sanglant
8 Replies
7. UNIX for Dummies Questions & Answers
Hi,
Anyone can help me on how to list the file with spaces? Like I want to "ls" only the 2008 files.
2008 _overview102.jpg
2008 _overview103.jpg
2008 _overview106.jpg
2008 _overview677.jpg
2008 _overview680.jpg
2008 _overview110.jpg
2008 _overview682.jpg
2009 _overview4373.jpg
2009... (1 Reply)
Discussion started by: fspalero
1 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
The shell script is currently using the below command to find the seven days older files from a directories and delete them.
Issue occurs when the file name consists of space in them. eg: abc def 1245.txt
I need to delete the files names with space also. Please help.
Thanks.
Below... (7 Replies)
Discussion started by: abhi_123
7 Replies
9. AIX
I'm sure this has been answered before, but my searches have not turned up the right solution. :confused:
I need to remove files in a directory, without descending into subdirectories, older than n days. Some of the filenames contain spaces or other special characters:
E10403 (2)
E20402 (2)... (15 Replies)
Discussion started by: Papa Lee
15 Replies
10. Shell Programming and Scripting
I have a folder with files and I have to process them in a loop. However the filenames have space characters, so the list get split.
$ touch "File Number_1"
$ touch "File Number_2"
$ ls "/tmp/File Number"_*
/tmp/File Number_1 /tmp/File Number_2
I tried following (sorry for using the... (3 Replies)
Discussion started by: Wernfried
3 Replies
LEARN ABOUT DEBIAN
lltag_config
lltag_config(5) File Formats Manual lltag_config(5)
NAME
config - Configuration file for lltag
DESCRIPTION
The following options may be stored in /etc/lltag/config or the user's $HOME/.lltag/config, or in any file passed with --config.
Such a configuration file may also be generated with --gencfg.
Obtaining tags
format = "string"
Add a user-defined format [-R]. Might be used multiple times. Default is to guess if no user-defined formats and no default field
values are given.
guess = <0/1>
Try to guess if user-defined formats do not match [-G]. Default is 0 (disabled) when no user-defined formats and no explicit values
are given.
tag = <TAG=value>
Add an explicit tag [--tag]. Might be used multiple times.
Tweaking filename parsing
no_path = <0/1>
Do not use file path when matching filename [-p]. Default is 0 (disabled).
spaces = <0/1>
Allow no or multiple spaces [--spaces]. Default is 0 (disabled).
Cleaning obtained tags
edit = <0/1>
Edit tags immediately [--edit]. Default is 0 (disabled).
maj = <0/1>
Upcase first letters of words in tags [--maj]. Default is 0 (disabled).
regexp = "s/from/to/"
Replace from with to in all tags. title,number:s/from/to/ replaces in title and number tags only. Might be used multiple times
[--regexp]. Default is to not apply any regexp.
sep = "string"
Replace |-separated strings with space in tags. Default is to not replace any separator.
Configuration of tag application
type = <mp3|ogg|flac|none>
Force mp3, ogg of flac instead of by-extension detection [--mp3, --ogg and --flac]. Default is none.
clear_tags = <0/1>
Clear all tags of audio files. [--clear]. Default is 0 (disabled).
append_tags = <0/1>
Append tags only instead of replacing old ones. [--append]. Default is 0 (disabled).
no_tagging = <0/1>
Do not actually tag files [--no-tagging]. Default is 0 (disabled).
preserve_time = <0/1>
Preserve file modification time during tagging [--preserve-time]. Default is 0 (disabled).
Renaming
rename_format = "string"
Rename file according to format [--rename]. Default is to not rename.
rename_min = <0/1>
Lowcase tags before renaming [--rename-min]. Default is 0 (disabled).
rename_regexp = "s/from/to/"
Replace from with to in all tags before renaming. title,number:s/from/to/ replaces in title and number tags only. Might be used
multiple times [--rename-regexp]. Default is to not apply any regexp.
rename_sep = "string"
Replace spaces with a string in tags before renaming [--rename-sep]. Default is to not replace any separator.
rename_slash = "string"
Replace slashes with a string in tags before renaming [--rename-slash]. Default is to replace with a dash.
rename_ext = <0/1>
Assume the rename format provides an extension [--rename-ext]. Default is 0 (disabled).
Miscellaneous
dry_run = <0/1>
Do nothing but show what would have been done [--dry-run]. Default is 0 (disabled).
yes = <0/1>
Tag without asking for confirmation when guessing and rename without asking for confirmation [--yes]. Default is 0 (disabled).
ask = <0/1>
Always ask for confirmation before tagging [--ask]. Default is 0 (disabled).
recursive = <0/1>
Recursively traverse all given subdirectories [-R]. Default is 0 (disabled).
verbose = <integer>
Message verbosity level [-v and -q]. Default is 0 (only important messages). Other possible values are 1 (show usage information
when a menu is displayed for the first time) and 2 (always show usage information before a menu appears).
CDDB configuration
cddb_server_name = hostname
Change the CDDB server name. Default is www.freedb.org.
cddb_server_port = <port>
Change the CDDB server port. Default is 80 (HTTP).
SEE ALSO
lltag(1)
The config template file provided within the documentation directory.
AUTHOR
Brice Goglin
NOVEMBER 2006 lltag_config(5)