Sponsored Content
Top Forums Shell Programming and Scripting How to read the filenames with space character in it Post 302522245 by fpmurphy on Saturday 14th of May 2011 01:21:16 AM
Old 05-14-2011
One way is to enclose the filenames in quotes.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to read filenames with space in between

Hi All, I need to read filenames with space in between in a for loop like Integration of utility projects Integration of hdf projects I copied these files from a windows system and as you know windows filename has spaces in between them. But while unix is reading the filename in a for... (12 Replies)
Discussion started by: dayanandra
12 Replies

2. Shell Programming and Scripting

read list of filenames from text file, archive, and remove

I posted a week ago regarding this scripting question, but I need to revisit and have a few more questions answered.. User cfajohnson was extremely helpful with the archive script, but clarification on my part is needed to help steer the answer in a direction that works in this particular... (5 Replies)
Discussion started by: fxvisions
5 Replies

3. Shell Programming and Scripting

Can i read a file character by character

How to read character by character using awk (6 Replies)
Discussion started by: karnan
6 Replies

4. UNIX for Dummies Questions & Answers

read a variable character by character, substitute characters with something else

im having trouble doing this: i have a variable with 2 characters repeating e.g. aababbbaaaababaabbaabbba is there a way i can search the variable for a's and b's and then change a's to b's and b's to a's? im guessing its like getting the 1's compliment of the string im doing this in... (2 Replies)
Discussion started by: vipervenom25
2 Replies

5. Shell Programming and Scripting

move filenames with to another filename without the last character ~

Hi, I need to move filenames with the following format below into filenames without the ~ like sample below. I hope you can help me create a simple unix script that will do this. Thanks in advance! move filename from: AIRS20081225-235641.BSP~ AIRS20081225-235648.BSP~ AIRS20081225-235640.BSP~... (3 Replies)
Discussion started by: ayhanne
3 Replies

6. Shell Programming and Scripting

read in a file character by character - replace any unknown ASCII characters with spa

Can someone help me to write a script / command to read in a file, character by character, replace any unknown ASCII characters with space. then write out the file to a new filename/ Thanks! (1 Reply)
Discussion started by: raghav525
1 Replies

7. Shell Programming and Scripting

Can I read a file character by character?

Hello all respected people, Can i read a file character by character without using sed,awk and perl commands. Thanks in advance. (4 Replies)
Discussion started by: murtaza
4 Replies

8. Shell Programming and Scripting

read the text file and print the content character by character..

hello all i request you to give the solution for the following problem.. I want read the text file.and print the contents character by character..like if the text file contains google means..i want to print g go goo goog googl google like this Using unix Shell scripting... without using... (1 Reply)
Discussion started by: samupnl
1 Replies

9. Shell Programming and Scripting

Read filenames in sorted order

Hi , My requirement is to scan a directory for file names with LTR.PDF* and send those files via ftp to another server one by one. Now the the problem is file names are like LTR.PDF ,LTR.PDF1 ,LTR.PDF2.....LTR.PDF10..upto 99 and these needs to be sent in sorted order. is there a way to get... (10 Replies)
Discussion started by: nishantrk
10 Replies

10. Shell Programming and Scripting

Read character by character in line in which space is also included

Hi friend, I have one file , and i want to read that file character by character. I need this script in ksh. while using read option with -n1 am getting error. while read -n1 c read has bad option And if i am using below script, then if in a line has space like this ( Pallvi mahajan)... (10 Replies)
Discussion started by: pallvi_mahajan
10 Replies
clamz(1)						      General Commands Manual							  clamz(1)

NAME
clamz - download MP3 music files from Amazon.com SYNOPSIS
clamz [ options ] amz-file ... DESCRIPTION
clamz is a little command-line program to download MP3 files from Amazon.com's music store. It is intended to serve as a substitute for Amazon's official MP3 Downloader, which is not free software (and therefore is only available in binary form for a limited set of plat- forms.) clamz can be used to download either individual songs or complete albums that you have purchased from Amazon. In order to use clamz, you must first enable the ``MP3 dowloader mode'' by visiting the following URL: http://www.amazon.com/gp/dmusic/after_download_manager_install.html?AMDVersion=1.0.9 If you are outside the US, replace `amazon.com' with the corresponding domain for your country (e.g., amazon.co.uk for the UK, or amazon.fr for France.) Amazon does not allow anyone to purchase MP3 files from outside their country of residence. To download the contents of an AMZ file into the current directory, just run clamz some-file-name.amz More advanced options are listed below. OPTIONS -o name-format, --output=name-format Set the name of the downloaded file(s). This may contain any of several variables which are derived from the input AMZ file; see FORMAT VARIABLES below. Note that the format string should be enclosed in single quotes, to stop the shell from expanding variables itself. -d directory-format, --output-dir=directory-format Set the directory where the downloaded files should be placed. (If this directory does not exist, it will be created.) This may also contain format variables. -r, --resume Resume downloading a partially-downloaded album. (By default, if you are downloading a file named foo.mp3, and the file foo.mp3 already exists in the destination directory, clamz will rename the new file to foo.mp3.1 to avoid overwriting the old file. If the -r option is used, clamz will instead assume that the first part of the file has already been downloaded, and will resume download- ing from where it left off.) -i, --info Rather than downloading anything, just display detailed information about the given AMZ file(s) to standard output. -x, --xml Rather than downloading anything, print the raw, decrypted XML data from the AMZ file to standard output. -v, --verbose Display detailed information while downloading. -q, --quiet Turn off the normal progress display; display only error messages. --forbid-chars=characters Do not allow the given characters to be used in output filenames. Note that control characters and slashes may never be used in filenames. --allow-chars=characters Opposite of the above; remove the given characters from the set of disallowed characters. --allow-uppercase Allow uppercase letters in filenames. --forbid-uppercase Do not allow uppercase letters in filenames. --utf8-filenames Use UTF-8 when writing filenames (the default behavior is to use UTF-8 if the system locale says so, otherwise ASCII.) --ascii-filenames Use only ASCII characters in filenames. --help Print out a summary of options. --version Print out version information. FORMAT VARIABLES As part of a name-format or directory-format option, you may include references to environment variables (e.g., $HOME) or to the `xdg-user- dirs' configuration variables (e.g., $XDG_MUSIC_DIR or $XDG_DESKTOP_DIR.) In addition, the following special variables are defined for each track, based on the information provided in the AMZ file, and subject to the above configuration options (--forbid-chars, --forbid-uppercase, etc.) ${title}, ${creator}, ${tracknum}, ${discnum}, ${genre}, ${asin} Title, creator, track number, disc number, genre, and ASIN (Amazon Standard Identification Number) of each individual track. ${album}, ${album_artist}, ${album_asin} Title, primary artist, and ASIN of the album the track comes from. (This information is available both for single-track and full- album downloads.) ${suffix} Suffix of the output file (currently only `mp3'.) ${amz_title}, ${amz_creator}, ${amz_genre}, ${amz_asin} These variables formerly contained metadata for the AMZ file as a whole; current AMZ files do not contain this information. Using these variables is not recommended. Similar to shell variable expansion, you can also use the following conditional expressions: ${var:-string} Expands to the value of variable var if it is defined and non-empty; otherwise, expands to string (which may itself contain variable references.) ${var:+string} Expands to string if the variable var is defined and non-empty; otherwise, expands to an empty string. Note that when you include format variables in a command-line argument, you will usually need to enclose the argument in single quotes ('...'), or insert a backslash before the `$', to prevent the shell from trying to expand the variables itself. FILES
$HOME/.clamz/config General configuration file, providing default settings for the --output, --forbid-chars, --allow-uppercase and --utf8-filenames options. $HOME/.clamz/amzfiles/ Directory containing backup copies of AMZ files. $HOME/.clamz/logs/ Directory containing log files. ENVIRONMENT
http_proxy HTTP proxy to use for downloading files; use `server:port' to specify a port number. AUTHOR
Benjamin Moody <floppusmaximus@users.sf.net> Clamz 0.5 October 2011 clamz(1)
All times are GMT -4. The time now is 11:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy