Sponsored Content
Full Discussion: Pb commande externe \r
Top Forums UNIX for Dummies Questions & Answers Pb commande externe \r Post 302470480 by sluvah on Wednesday 10th of November 2010 09:14:42 AM
Old 11-10-2010
Power Pb commande externe \r

J'ai un soucis avec une commande externe... la voici :

Code:
#!/bin/bash/
mkdir lol
mkdir not
sleep 2
mkdir glop

Mon bash l'éxécute (déjà ça Smilie) à sa façon.....
Je me retrouve avec non pas 3 dossiers lol, not et glop. Mais les dossiers : lol?, not? et glop (oui ! un de bon !!!!!). Et, une erreur sur le sleep : sleep invalid interval '2\r'

Oh oh, mais que vois-je ? un retour de ligne ?!
Bon, certe j'ai sauté des lignes, mais c'est pour aérer... Je ne suis pas obligée de tout mettre sur la même ligne dans un fichier de commande externe ? non ? si ??? (j'en suis à mon 4eme jour de unix >_< .... pardonnez ma noob'attitude)

Bon, j'ai créé mon fichier avec notepad (j'utilise cygwin, donc j'édite mes fichiers par confort via note-pad). Mais, je l'ai tout réécrit après ça avec vi !
Et kif kif bourricot !



Arg.... Ca m'a déjà bouffé 2-3 bonnes heures.... Des idées ???

Merci d'avance !
Sluvah
 

3 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

cree a variable from a commande result

Hi everybody I m looking the put the result of a commande to a Variable i explain here is my command: cat sortie | grep "^"| awk '{ print $1}' 15 sortie is a text file I want to put the result of command in a variable X and the end i would like echo $X 15 (3 Replies)
Discussion started by: kykyboss
3 Replies

2. AIX

commande mailx : spaces in the title

Hello ! I use mailx to send emails. I use it like that mailx -s $titleMail $mailAdr < BODY_MAIL.txt The problem , is if i have some spaces in the variable titleMail it is considered by the command mailx like other mail adress to send the mail. Anyone would have a suggestion... (1 Reply)
Discussion started by: comboDev
1 Replies

3. Shell Programming and Scripting

sum two numbers on a grep commande with the parameter -n

Hello, I want to know how i can sum two numbers in a grep command with the parameter -n. this code return line number and the line who have the "pattern" : *\).*/\1/p') ] but now i want to suw *\).*/\1/p')] with 1 to have the next line: *\).*/\1/p')] + 1 : it can't work. Thanks you (4 Replies)
Discussion started by: samara80
4 Replies
gnomevfs-mkdir(1)						   User Commands						 gnomevfs-mkdir(1)

NAME
gnomevfs-mkdir - make a new directory at a VFS location SYNOPSIS
gnomevfs-mkdir URI DESCRIPTION
gnomevfs-mkdir makes a new directory at a URI location that supports the creation of new directories. OPERANDS
The following operands are supported: URI Specifies the location of the new directory in standard URI format. EXAMPLES
Example 1: Making a New Directory in the Home Directory example% gnomevfs-mkdir file:///home/user/newdir ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables: NLSPATH. EXIT STATUS
The exit value 0 is returned regardless of success or failure. FILES
The following files are used by this application: /usr/bin/gnomevfs-mkdir Executable to make a new directory at a VFS location ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-vfs | +-----------------------------+-----------------------------+ |Interface stability |External | +-----------------------------+-----------------------------+ SEE ALSO
gnomevfs-cat(1), gnomevfs-copy(1), gnomevfs-info(1), gnomevfs-ls(1) NOTES
Written by Stephen Browne, Sun Microsystems Inc., 2004. SunOS 5.10 6 Sep 2004 gnomevfs-mkdir(1)
All times are GMT -4. The time now is 07:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy