Search Results

Search: Posts Made By: elginmulizwa
2,121
Posted By elginmulizwa
i want to replace $To in the existing script with...
i want to replace $To in the existing script with the command argument after -d ...
this code is not working i dont know why....

#!/bin/bash
From="/home/elg19/lone/doc"
To=$2

if [ $1 = -d ];...
2,004
Posted By elginmulizwa
im the one who posted that and its not working
im the one who posted that and its not working
2,004
Posted By elginmulizwa
arguments in bash
This script moves all the doc files to a specified directory. I have managed to put an argument but the problem I am facing is putting the full path where the scripts are moving to, for example I...
2,121
Posted By elginmulizwa
arguments in bash
this script moves all the doc files to a specified directory....i have managed to put an argument but the problem im facing is puting the full path where the scripts are moving to for example i want...
4,636
Posted By elginmulizwa
yes but i want to know how to use the same...
yes but i want to know how to use the same command, lets say i wanted to move media files,.mp3,.mp4,.avi to same directory and the rest ofthe files i can use
the command mv *
4,636
Posted By elginmulizwa
but how do i group them for example i have...
but how do i group them for example i have .txt,.doc,.pdf
4,636
Posted By elginmulizwa
thanks it was just a typo error though im stack...
thanks it was just a typo error though im stack how can i move other files with different extension to another directory?
4,636
Posted By elginmulizwa
moving files to different directories
im trying to move media and other files which are in a specified directory to another directory and create another one if it does not exits(where the files will go),them also create a directory will...
1,897
Posted By elginmulizwa
directories and file arrangement in bash
im trying to write a script that will put files with different extensions into their specified directories

In the directory are files of various types, i want to arrange the files on individual...
2,442
Posted By elginmulizwa
bc,getopt and arrays in bash
trying to sum elements in an array using bc and getopt,i have a file with names and thier vaules if the names appears 3 times i should multiply its value with 3 then find the sum of all the elements...
882
Posted By elginmulizwa
arrays in text
#!/bin/sh
# Script to count the total in an array
# Define the name of the file
#
fname=names.txt

# Read in the contact details from the keyboard
echo "Please enter the following contact...
716
Posted By elginmulizwa
text files
im trying to write a script that will create a text file with names in it and there points for example
evans +1.5
greg +1
john +0.5
etc
the script should output the text file on the screen or...
1,425
Posted By elginmulizwa
why have u used -exec?
why have u used -exec?
1,425
Posted By elginmulizwa
copying with a certain extension
trying to copy all the files without extension then add
"*.txt" but its not working is there any other way and i do not want to use
cpio -vdump just want to use copy command

...
868
Posted By elginmulizwa
i mean within the script
i mean within the script
868
Posted By elginmulizwa
files and files permissions
m trying to write a script that lists the files in the directory but
it should mask files if someone is searching for them,ownership rights and have access rights
1,371
Posted By elginmulizwa
should copy only the files without the end,...
should copy only the files without the end, those that do not match the pattern *.*
1,371
Posted By elginmulizwa
copying and manipulating files
im copying alot of files this is a script im trying to modify but not sure how to make it copy files without an extension and then add a .txt to them
abc= #assuming the file does not have an...
1,180
Posted By elginmulizwa
help me with lab im new to bash....
Write a script that copies the file tree (including subdirectories) in your home directory. As the initial directory to take the directory / usr / share / doc, as the destination directory using the...
Showing results 1 to 19 of 19

 
All times are GMT -4. The time now is 07:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy