Sponsored Content
Full Discussion: Print result of mv -n
Top Forums UNIX for Dummies Questions & Answers Print result of mv -n Post 302936055 by parijat guh on Sunday 22nd of February 2015 02:43:22 PM
Old 02-22-2015
Print result of mv -n

I am trying to move files which donot have same filename using

Code:
find /Users/ParijatMac/desktop/unix/new_dir -type f -mmin +"$HRS"  -exec mv -n "{}" /Users/ParijatMac/desktop/unix/old_dir \; -print


but i am getting all filenames including the ones with duplicate names.Please help me to sort this out.
Thanks in advance
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

print a function result in new file

Hi, i have a function which return a variable . serach ( paramatere) when i excute this function i get the result in the shell, i want to print this result in a file by calling just the function. how can i do it.. the code example is like that: search ( ) { .. } the call... (0 Replies)
Discussion started by: kamel.seg
0 Replies

2. Shell Programming and Scripting

print out result from data file

i got a data file which contains all the pid,ppid,user,command,pcpu,start_time,status. I wanted to display out the pcpu which is greater than 0. i uses awk'{if($5 > 0){print}}' filename.txt but is printing out result which not i wanted. Is there any way which i can print out those pcpu which is... (8 Replies)
Discussion started by: thms_sum
8 Replies

3. Shell Programming and Scripting

Filter the column and print the result based on condition

Hi all This is my output of the some SQL Query TABLESPACE_NAME FILE_NAME TOTALSPACE FREESPACE USEDSPACE Free ------------------------- ------------------------------------------------------- ---------- --------- ---------... (2 Replies)
Discussion started by: jhon
2 Replies

4. Shell Programming and Scripting

sort, columns, no result! can I print files of "planes"?

hi, please can I ask you for some help? I have data from 3D situation, x y z value I'd like to use gnuplot to generate maps of the value in the planes z=0 to z=1 for example, my file looks like -0,012 0,0060 0,0 0,13972813076023477 -0,012 0,0064319163 4,2894483E-4 ... (1 Reply)
Discussion started by: kocour
1 Replies

5. Shell Programming and Scripting

Print the whole line which contains the result of the command cut

Hey everyone I have a file 'agenda' which contains: Object Day Month Year Birthday 09 02 2012 i want to extract from a script the line which contains the day the user typed. for example if he type 09 the line is showed using... (4 Replies)
Discussion started by: Goldstein
4 Replies

6. Shell Programming and Scripting

Use the print result of a script as an argument

Hi all, Say I have a script named script.sh. What it does is to print a line like "abc" #! /usr/bin/ksh print "abc" I would like to pass this value to an external variable, var1="script.sh" However when I echo $var1 I got "script.sh" itself instead of the result? Thanks (3 Replies)
Discussion started by: isaacniu
3 Replies

7. Shell Programming and Scripting

Find a group of result and print last hits

Hi I would like to search some data with awk and then print the last of the hits. Find house and print last value input:red house 4 blue boat 2 green house 6 black car 7 output:6 I now how to search using /house/, print third field print $3, an now I may use some form of $NR to get the... (3 Replies)
Discussion started by: Jotne
3 Replies

8. Shell Programming and Scripting

Print if found non-desired result

I have a result like this root@server # grep -rl maldet /etc/cron* /etc/cron.d/maldet_daily /etc/cron.d/malcron /etc/cron.d/malcrondaily /etc/cron.d/malcronweekly What I need is, I need an if/else condition such that, if there is any output other than /etc/cron.d/maldet_daily in the... (8 Replies)
Discussion started by: anil510
8 Replies

9. Shell Programming and Scripting

Compare 2 columns from the same file and print a value depending on the result

Hello Unix gurus, I have a file with this format (example values): label1 1 0 label2 1 0 label3 0.4 0.6 label4 0.5 0.5 label5 0.1 0.9 label6 0.9 0.1 in which: column 1 is a row label column 2 and 3 are values I would like to do a simple operation on this table and get the... (8 Replies)
Discussion started by: ksennin
8 Replies

10. Shell Programming and Scripting

To get or print specific value in result

i am executing below code to achive my result, but for second row the value is not coming it should come URL like other two . url start with http:// and end with .xhtml cat FILE | grep 'Test failed' | awk -F',' '{print $3,$8,$12}' INPUT 1517679173303,84,SKILLED LANGUAGE - ENTER... (11 Replies)
Discussion started by: mirwasim
11 Replies
EXO-DESKTOP-ITEM-EDIT(1)					   User Commands					  EXO-DESKTOP-ITEM-EDIT(1)

NAME
exo-desktop-item-edit - Create icons on the desktop DESCRIPTION
Usage: exo-desktop-item-edit [OPTION...] [FILE|FOLDER] Help Options: -?, --help Show help options --help-all Show all help options --help-gtk Show GTK+ Options Application Options: -c, --create-new Create a new desktop file in the given directory -t, --type Type of desktop file to create (Application or Link) --name Preset name when creating a desktop file --comment Preset comment when creating a desktop file --command Preset command when creating a launcher --url Preset URL when creating a link --icon Preset icon when creating a desktop file -v, --version Print version information and exit --display=DISPLAY X display to use AUTHOR
Written by Benedikt Meurer <benny@xfce.org>. exo-desktop-item-edit comes with ABSOLUTELY NO WARRANTY, You may redistribute copies of exo-desktop-item-edit under the terms of the GNU Lesser General Public License which can be found in the exo source package. Please report bugs to <http://bugzilla.xfce.org/>. COPYRIGHT
Copyright (C) 2005-2006 os-cillation e.K. All rights reserved. SEE ALSO
The full documentation for exo-desktop-item-edit is maintained as a Texinfo manual. If the info and exo-desktop-item-edit programs are properly installed at your site, the command info exo-desktop-item-edit should give you access to the complete manual. exo-desktop-item-edit 0.3.1.10rc1 September 2006 EXO-DESKTOP-ITEM-EDIT(1)
All times are GMT -4. The time now is 08:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy