Search:

Type: Posts; User: sohlinux; Keyword(s):

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    291

    [SOLVED] Re: copy random files overwrite or rename

    thanks for the answers. they work fine :)
  2. Replies
    4
    Views
    291

    [SOLVED] copy random files overwrite or rename

    I want to copy 1000 random files from a folder and sub folders with many 1000s of files but some of the files have the same name and it prompts me to overwrite but how can I let it over write...
  3. [SOLVED] Re: copy random files from each folder to a new folder

    perfect!, thanks for your help, I will mark this solved :)
  4. [SOLVED] Re: copy random files from each folder to a new folder

    it says cp: omitting directory `./030216'

    030216 is one of the directories inside /0
  5. [SOLVED] Re: copy random files from each folder to a new folder

    yes there is a /0 directory, and the folders have all different names. anyway I have just about managed to do it just by copying the first file from each folder with I will play around with your...
  6. [SOLVED] Re: copy random files from each folder to a new folder

    thanks but its just throwing error

    what is {1..3} ?

    I get error
    cp -t /0/ --
    find: `2/': No such file or directory
    cp -t /0/ --
    find: `3/': No such file or directory
  7. [SOLVED] Re: copy random files from each folder to a new folder

    I just need to copy 1 file from each folder but only 1 folder deep, I managed to copy 1 file with the following

    find . -name '*001*.jpg' | cpio -pdm /dest

    then to flaten

    find . -mindepth 2...
  8. [SOLVED] Re: copy random files from each folder to a new folder

    or forget random how can I just copy 1 single file from all folders but only 1 deep to another folder, it could be the first file of each folder. thanks
  9. [SOLVED] copy random files from each folder to a new folder

    Hello,

    I want to copy 1 file from 500 different folders with maxdepth 1, I have tried the following and I am getting errors


    find /0/ -maxdepth 1 -mindepth 1 -type f -print0 | sort -Rz | cut...
  10. [ubuntu] Re: Problems with scanning from Xerox Phaser 6180MFP

    can u ping 10.0.0.9? if not check which ip the scanner is using, with ifconfig then use nmap, netstat or arp to make sure its online, if you find its using another ip then add that ip to your config...
  11. [SOLVED] Re: move files from all subfolders to the same folder but ignore deeper folders

    I have found that some of the folders have files with the same name as some of the files in other folders so is it possible to add something to the script to rename the files if they have the same...
  12. [SOLVED] Re: move files from all subfolders to the same folder but ignore deeper folders

    awesome thanks
  13. [SOLVED] Re: move files from all subfolders to the same folder but ignore deeper folders

    I was putting -maxdepth 1 -mindepth 1 directly after the find command , I see you placed it after the folder name . which now works

    yes I meant xargs 0

    what I had tried didnt work

    find...
  14. Replies
    10
    Views
    663

    [SOLVED] Re: setting up SSH

    good news, pls mark the thread SOLVED
  15. Replies
    10
    Views
    663

    [SOLVED] Re: setting up SSH

    it will save it in the same place /etc/ssh/sshd_config, just hit enter then restart ssh
  16. Replies
    1
    Views
    270

    [ubuntu] Re: Seemingly Random Reboots -- Advice?

    check the logs in /var/log look for the time and date it rebooted, it may shed some light
  17. Replies
    10
    Views
    663

    [SOLVED] Re: setting up SSH

    save it in the same place /etc/ssh/sshd_config
  18. [ubuntu] Re: Problems with scanning from Xerox Phaser 6180MFP

    try to allow port 139 in your firewall
  19. [SOLVED] move files from all subfolders to the same folder but ignore deeper folders

    Hello,

    I have a folder with many sub-folders and inside the sub-folders are many files and more folders, I want to move all the files except the files in deeper folders to /data folder

    I have...
  20. Replies
    9
    Views
    462

    [SOLVED] Re: MC under bash screen not working

    I reset screen's configuration files to default and now its working so maybe it was something I edited. thanks
  21. Replies
    9
    Views
    462

    [SOLVED] Re: MC under bash screen not working

    yes it works fine without screen but I like to have a many screens running doing various tasks like ftp but it will not work :(
  22. Replies
    9
    Views
    462

    [SOLVED] Re: MC under bash screen not working

    Ubuntu Server 14.04.3
  23. Replies
    9
    Views
    462

    [SOLVED] Re: MC under bash screen not working

    yes I mean if I open a terminal then type screen then type mc the menus and F keys dont work.
  24. Replies
    9
    Views
    462

    [SOLVED] MC under bash screen not working

    Hello, If I launch MC (midnight commander) under bash screen command its impossible to use any of the F keys and menus. does anyone know why it doesnt work and how to fix it? thanks
  25. [ubuntu] Re: recursively remove brackets from directory names

    yes I changed to type d. maybe something is missing on this server. ill try again locally and see if it works.
Results 1 to 25 of 250
Page 1 of 10 1 2 3 4