dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

concatenating the filenames in a directory - shell

This is a discussion on concatenating the filenames in a directory - shell ; On Nov 11, 1:17*pm, Janis Papanagnou wrote: > Naru wrote: > > > btw what does this "${var1#?}" do??? n how does it suppress the > > unwanted ':" > > Removes the first character from var1. > > Janis ...


Home > Database Forum > Operating Systems > shell > concatenating the filenames in a directory

Reply

 

LinkBack Thread Tools Display Modes
  #11  
Old 11-12-2008, 06:22 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: concatenating the filenames in a directory

On Nov 11, 1:17*pm, Janis Papanagnou
wrote:
> Naru wrote:
>
> > btw what does this "${var1#?}" do??? n how does it suppress the
> > unwanted ':"

>
> Removes the first character from var1.
>
> Janis


Hi when i write this line to a file and while opening the file it is
saying last line incomplete..hence i am not able to use this file in
any other process

any idea how to resolve this??
Reply With Quote
  #12  
Old 11-12-2008, 06:23 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: concatenating the filenames in a directory

On Nov 11, 1:17*pm, Janis Papanagnou
wrote:
> Naru wrote:
>
> > btw what does this "${var1#?}" do??? n how does it suppress the
> > unwanted ':"

>
> Removes the first character from var1.
>
> Janis


Hi when i write this line to a file and while opening the file it is
saying last line incomplete..hence i am not able to use this file in
any other process

any idea how to resolve this??
Reply With Quote
  #13  
Old 11-12-2008, 06:43 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: concatenating the filenames in a directory

Naru wrote:
> On Nov 11, 1:17 pm, Janis Papanagnou
> wrote:
>
>>Naru wrote:
>>
>>
>>>btw what does this "${var1#?}" do??? n how does it suppress the
>>>unwanted ':"

>>
>>Removes the first character from var1.
>>
>>Janis

>
>
> Hi when i write this line to a file and while opening the file it is
> saying last line incomplete..hence i am not able to use this file in
> any other process
>
> any idea how to resolve this??


If you're said that the last line is incomplete, either your editor
does not terminate the line correctly with a LF character, or you've
omitted some characters from the line as I posted it, I'd speculate...

printf "%s\n" "${var1#?}" >> "$DIR/$filename_out.txt"


Janis
Reply With Quote
  #14  
Old 11-12-2008, 06:52 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: concatenating the filenames in a directory

On Nov 11, 1:17*pm, Janis Papanagnou
wrote:
> Naru wrote:
>
> > btw what does this "${var1#?}" do??? n how does it suppress the
> > unwanted ':"

>
> Removes the first character from var1.
>
> Janis


Hi when i write this line to a file and while opening the file it is
saying last line incomplete..hence i am not able to use this file in
any other process

any idea how to resolve this??
Reply With Quote
  #15  
Old 02-23-2010, 02:37 AM
Database Expert
 
Join Date: Feb 2010
Posts: 42
HENARRY JAYA is on a distinguished road
Default Re: concatenating the filenames in a directory

You will need to install Japanese support for Windows XP. I'd also recommend updating to the latest version of Win RAR to make sure you have Unicode support.
Open my documents...select the file that you want to relocate and in the left hand menu select either move or copy.....A pop up will appear asking you ware you want to move this/these files too ....follow instructions...
Reply With Quote
Reply

Thread Tools
Display Modes



All times are GMT -4. The time now is 01:26 AM.