Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to move file from one directory to other of only particular user? Post 302888849 by lakers646 on Monday 17th of February 2014 04:08:44 PM
Old 02-17-2014
hi Yoda thanks for reply. Here is my code and I get variable syntax error. What is wrong here

wner=$( stat -c %$USER $prnfile.pdf )

mv $prnfile.pdf "${owner}/" /mktg/fxf05/print/dev/Freight/ReportRevSummary
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Cron job to move file from one directory to another

Hi, I have following directory structure Media (Inside media directory I have two folders namely videos and images) -->videos -->images Inside media directory I have some video files with extension .mp4 and images with extension of .jpg and .jpeg I want to write a cron job which will... (3 Replies)
Discussion started by: tusharkale
3 Replies

2. Shell Programming and Scripting

Move a file from windows directory to unix directory

Move a file from windows directory to unix directory, is this possible? if it is, can someone help me on this? Thanks! God bless! (1 Reply)
Discussion started by: kingpeejay
1 Replies

3. Shell Programming and Scripting

Move the latest or older File from one directory to another Directory

I Need help for one requirement, I want to move the latest/Older file in the folder to another file. File have the datetimestamp in postfix. Example: Source Directory : \a destination Directory : \a\b File1 : xy_MMDDYYYYHHMM.txt (xy_032120101456.txt) File2: xy_MMDDYYYYHHMM.txt... (1 Reply)
Discussion started by: pp_ayyanar
1 Replies

4. UNIX for Dummies Questions & Answers

Finding file in a directory structure + move

Hi All, im a new guy if it comes to Unix. I am trying to auto categorize Nzbget downloads the most basic way. I already manage to find files within the directory i'm at and move them with if check to a certain dir. Unfortunately this command is restricted to the directory i'm at and does not... (2 Replies)
Discussion started by: RoxXxoR
2 Replies

5. UNIX for Dummies Questions & Answers

move a file content to another directory

my script is: /u/user/orginal/:#! /bin/ksh find . -name "aur_prog*" -exec grep -il "error" > test.out #awk command to destination directory exit test.out file contain: ./aur_prog1.log ./aur_prog2.log ... (5 Replies)
Discussion started by: roughwal
5 Replies

6. Shell Programming and Scripting

Move file in to directory- script

Hi In directory /mnt/upload I have about 100 000 files (*.png) that have been created during the last six months. Now I need to move them to right folders. eg: file created on 2014-10-10 move to directory /mnt/upload/20141010 file created on 2014-11-11 move to directory /mnt/upload/20141111... (6 Replies)
Discussion started by: primo102
6 Replies

7. Shell Programming and Scripting

How I can find the last file created and move it to a directory?

I have this situation /u03/app/banjobs> ls -ltr icg* 82 Jun 12 10:37 iicgorldi_2419186.log 56810484 Jun 17 10:35 icgorldi_2421592.xml 2859 Jun 17 10:35 icgorldi_2421592.lis - 125 Jun 17 10:35 icgorldi_2421592.log 82 Jun 12 10:37 iicgorldi_2419187.log ... (8 Replies)
Discussion started by: Bernardo Jarami
8 Replies

8. Shell Programming and Scripting

Shell script cannot create directory and move the file to that directory

I have a script, which is checking if file exists and move it to another directory if then mkdir -p ${LOCL_FILES_DIR}/cool_${Today}/monthly mv report_manual_alloc_rpt_A_I_ASSIGNMENT.${Today}*.csv ${LOCL_FILES_DIR}/cool_${Today}/monthly ... (9 Replies)
Discussion started by: digioleg54
9 Replies

9. Shell Programming and Scripting

Move file from one directory and update the list file once moved.

Dears, I have a listfile contains list of files path. i need to read the line of the listfile mv the file to other directory and update the listfile by deleting the lines of the listfile. #!/bin/bash target=/fstest/INVESTIG/Sadiq/TEST_ARCH while read -r line || ]; do mv $line... (19 Replies)
Discussion started by: sadique.manzar
19 Replies

10. Shell Programming and Scripting

Move matching file to folder in same directory

The below bash executes but nothing is copied. I am trying to cp or mv the matching .pdf to the corresponding folder. There will always be a matching .pdf found but the number of folders may vary. The portion in red is what is used to match the .pdf--- variable $pdf to the folder--- variable... (11 Replies)
Discussion started by: cmccabe
11 Replies
PSTOPDF(1)							      ConTeXt								PSTOPDF(1)

NAME
pstopdf - convert EPS to PDF SYNOPSIS
pstopdf [ OPTION ... ] FILE [ ... ] DESCRIPTION
pstopdf converts EPS (encapsulated PostScript) to PDF. OPTIONS
--help Print usage and version information. --convert Convert EPS to PDF. This option is assumed if none is given. --method=string What method to use for bounding boxes when converting to PDF. Specify one of crop, bounded (the default), or raw. Older versions of ConTeXt used numerical methods (1, 2, or 3). --resolution=string The resolution to use when when converting to pdf. Specify one of low, normal, medium, high, printer, print, screen, ebook, or default. --request Handle exa request file. --watch Watch folders for conversions (untested). EXAMPLES
To make cow.pdf: pstopdf cow.eps or (one of several equivalents): pstopdf --convert cow.eps cow.pdf SEE ALSO
epstopdf(1), mptopdf(1), ps2pdf(1), texexec(1). ConTeXt wiki <http://www.contextgarden.net>. AUTHOR
This (incomplete) manual page was written by Sanjoy Mahajan <sanjoy@mit.edu>. It is in the public domain. pstopdf 2.0 December 2006 PSTOPDF(1)
All times are GMT -4. The time now is 07:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy