Your problem is the wrong destination in the cp command; it must be dir/file.
Together with a few improvements:
Previous suggestion should work as well. But a Posix count=$((count+1)) is better portable.
Last edited by MadeInGermany; 12-27-2019 at 02:44 PM..
This User Gave Thanks to MadeInGermany For This Post:
I have a report file that is generated every day by a scheduled process.
Each day the file is written to a directory named .../blah_blah/Y07/MM-DD-YY/reportmmddyy.tab
I want to copy all of this reports to a separate directory without having to do it one by one.
However, if I try
cp... (3 Replies)
So I am not sure if this should go in the shell forum or in the beginners. It is my first time posting on these forums.
I have a directory, main_dir lets say, with multiple sub directories (one_dir through onehundred_dir for example) and in each sub directory there is a test.txt. How would one... (2 Replies)
Hi,
I want to put the following values into Variables R2=0.999863 , V2=118.870318 , D2=-178.887511 and so on. There are six values for each variable R2-R8, V2-V8 and D2-D8, total of 18 values for all the variables. Can any one help me to copy and paste all the values in their respective... (2 Replies)
Hello,
I have a small question and i hope someone can help me, if i have 200 domains directories in my server under this directory
something like
now how i can copy one folder i have to this directories?
Thank You (5 Replies)
I have several directories and all those directories have .dat files in them. I want to copy all those .dat files to one directory say "collected_directory"
The problem is I don't want to overwrite files. So, if two file names match, I don't want the old file to be overwritten with a new one.
... (1 Reply)
I am using below scripts to copy all the files from multiple folders. By executing individually command i am able to copy all the files but using scripts only getting first file. System is ignoring the second CD and mget command.
HOST=server.com
USER=loginid
PASSWD="abc"
echo "open $HOST... (6 Replies)
my directory structure is like below:
basedir\
p.txt
q.htm
r.java
b\
abc.htm
xyz.java
c\
p.htm
q.java
rst.txt
my requirement is i want to copy all the files and directories... (0 Replies)
Hi,
Friends, i have a requirement where i need to rename my files residing in multiple sub directories and move them to one different directory along with some kind of directory indicator.
For eg:
test--is my parent directory and it has many files such as
a1.txt
a2.txt
a3.txt
... (5 Replies)
I have data of an excel files as given below,
file1
org1_1 1 1 2.5 100
org1_2 1 2 5.5 98
org1_3 1 3 7.2 88
file2
org2_1 1 1 2.5 100
org2_2 1 2 5.5 56
org2_3 1 3 7.2 70
I have multiple excel files as above shown.
I have to copy column 1, column 4 and paste into a new excel file as... (26 Replies)
Hey
im working on script that can compare 2 directory and check difference, then copy difference files in third diretory.
here is the story:
in folder one we have 12 subfolder and in each of them near 500 images hosted.
01 02 03 04 05 06 07 08 09 10 11 12
in folder 2 we have same subfolder... (2 Replies)
Discussion started by: nimafire
2 Replies
LEARN ABOUT DEBIAN
wmanager
WMANAGER(1) BSD General Commands Manual WMANAGER(1)NAME
wmanager -- choose a window manager and launch it
SYNOPSIS
wmanager [OPTIONS ...]
DESCRIPTION
The wmanager program displays a choice of the window managers listed in the ~/.wmanagerrc file. When one is picked, the related command is
written to standard output, intended to be used by shell scripts. If the program is exited without choosing a window manager, ``-1'' is
written to standard output.
-fg COLOR
Set the foreground color.
-bg COLOR
Set the background color.
-bg2 COLOR
Set the widget background color
-di[splay] host:n.n
Set the X display.
-dn[d], -nod[nd]
Enable/disable drag & drop, probably does nothing.
-g[eometry] WxH+X+Y
Set the window size and location.
-i[conic]
Start as iconified.
-k[bd], -nok[bd]
Enable/disable keyboard support.
-na[me] CLASSNAME
Set the X window class.
-s[cheme] SCHEME
Unknown, probably does nothing useful.
-ti[tle] WINDOWTITLE
Set the window title.
-to[oltips], -not[ooltips]
Enable/disable tooltips, probably does nothing.
EXAMPLE
To start using wmanager, create a ~/.wmanagerrc file - generally with wmanagerrc-update(1) - and add something like the following at the end
of your ~/.xsession file:
WM="$(wmanager -geometry +570+585)"
...
exec $WM
See also wmanager-loop(1) for a nicer way to start wmanager.
SEE ALSO wmanager(1), wmanager-loop(1), wmanagerrc-update(1), X(7x)HISTORY
The wmanager program was written by Meik Tessmer in 1999. This manual page was originally written in perldoc format by Tommi Virtanen in
2000, and converted to mdoc format by Peter Pentchev in 2008.
AUTHORS
The wmanager program - Meik Tessmer <fuller@daemogorgon.net>.
The manual page - Tommi Virtanen <tv@debian.org> and Peter Pentchev <roam@ringlet.net>.
BSD May 22, 2008 BSD