Sponsored Content
Full Discussion: Saving files
Top Forums Shell Programming and Scripting Saving files Post 302515410 by ahamed101 on Wednesday 20th of April 2011 04:10:11 AM
Old 04-20-2011
Requirement is not clear. May be this is what you want?

Code:
#!/bin/ksh

srcdir=/usr/bi/ci
dstdir=/where/ever/you/want
cd $srcdir
for i in *
do
  cp $i $dstdir
done

what do you mean by saving the contents?

regards,
Ahamed
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

saving a vi session

Apologies if this isn't quite the right thread I have a vi session and I have set a lot of tags with 'mx'. can I save this session preserving these tags so when I go back to the session I don't have to reset them all? cheers (0 Replies)
Discussion started by: ajcannon
0 Replies

2. UNIX for Dummies Questions & Answers

Crontab keeps saving empty files of the job file.

Hey, MAILTO=cron@domain.ca */20 * * * * /usr/bin/wget http://list.domain.ca/admin/consume.php >/dev/nullthats what the crontab is setup todo, so basically every 20minutes it runs consume.php In my root directory, i'm getting files like this: consume.php consume.php1 consume.php2 i woke... (3 Replies)
Discussion started by: iarp
3 Replies

3. UNIX for Dummies Questions & Answers

Saving or writing files in unicode - IS0-8859-5

Hi, I have problems in saving/writing files that contains Unicode characters - to be specific ISO-8859-5. The source file contains correct Unicode characters, should I add specific unix scripts before writing the said file? Many thanks, ahrong09 (0 Replies)
Discussion started by: ahrong09
0 Replies

4. Shell Programming and Scripting

recursive saving of files and folders

Hi all I have a bash script, that loops through a folders files and all subfolders for .shtml files. It looks for a string and replaces it, creating a backup of the original file. This all works great, but I'd like, when the backup is done, that the files are then also created in their... (4 Replies)
Discussion started by: terrid
4 Replies

5. UNIX for Dummies Questions & Answers

Silly question-how i refer to the current directory when saving files

I want to save a bunch of files to a folder in my current directory. Ho do i refer to my current directory without writing all the path? (2 Replies)
Discussion started by: FelipeAd
2 Replies

6. UNIX for Dummies Questions & Answers

Assistance with combining, sorting and saving multi files into one new file

Good morning. I have a piece of code that is currently taking multiple files and using the CAT.exe command to combine into one file that is then sorted in reverse order based on the 3rd field of the file, then displayed on screen. I am trying to change this so that the files are being combined into... (4 Replies)
Discussion started by: jaacmmason
4 Replies

7. Shell Programming and Scripting

parsing txt file, saving graphics files

hi everyone, i am a newbie in shell programming. and i want to simply go through a text file that contains 3 "columns", split by ';' customerID ; link-to-contract ; save-as-filename so an example would simply look like this now i want to loop through every line, and save the file from... (3 Replies)
Discussion started by: Confidence
3 Replies

8. Shell Programming and Scripting

Read each line and saving the line in separate files

Hi Experts, I am having a requirement like this; Input file EIM_ACCT.ifb|1001|1005 EIM_ADDR.ifb|1002|1004 EIM_ABD.ifb|1009|1007 I want to read each line of this file and pass each line,one at a time,as an argument to another script. eg; 1.read first line->store it to a file->call... (2 Replies)
Discussion started by: ashishpanchal85
2 Replies

9. Shell Programming and Scripting

Input not saving correctly in both files

If the user inputs two variants separated by a comma, the below command is supposed to write both variants to the GJ-53.txt and then to out.txt. Both are written to the GJ-53.txt, however only one is written to out.txt and I'm not sure why. Thank you :). gjb2() { printf "\n\n" ... (1 Reply)
Discussion started by: cmccabe
1 Replies

10. Shell Programming and Scripting

Saving files with file name as output

Hi, i need help with a file creation of an output program. I've got a program that with #find creates an output for each files in a directory. If i give this command : -o spec$(date -u +%Y%m%dt%H%M) it creates just one file, overwriting all the others since it is the creation date .... (2 Replies)
Discussion started by: Board27
2 Replies
NGP2(1) 						      General Commands Manual							   NGP2(1)

NAME
ngp2 - convert ngp files to image SYNOPSIS
ngp2 [options] ngp files DESCRIPTION
ngp2 is the program to convert ngp files created by Ngraph to image files such as PostScript, SVG, PNG, PDF or GRA. OPTIONS
Command line options are: -I ignore path of data files -a automatically set scale of axis when scale is not set -A clear and automatically set scale of axis -c change directory to location of a ngp file -d dpi set dpi -ps, ps3 save as PostScript level 3 -ps2 save as PostScript level 2 -eps, -eps3 save as Encapsulated PostScript level 3 -eps2 save as Encapsulated PostScript level 2 -pdf save as Portable Document Format -svg, -svg1.1 save as Scalable Vector Graphics version 1.1 -svg1.2 save as Scalable Vector Graphics version 1.2 -png save as Portable Network Graphics -h, --help show help message AUTHORS
Hiroyuki Ito <ZXB01226@nifty.com> SEE ALSO
ngraph(1) COPYRIGHT
Copyright (C) 1999 Hiroyuki Ito 4th Berkeley Distribution Local NGP2(1)
All times are GMT -4. The time now is 05:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy