Hi all! I think someone might be able to solve my problem pretty easily.
I am trying to run a bash loop with 3 variables.
A bit of background
I'm a developer and I install most of my tools in my home folder. So my shell's rc file is full of JAVA_HOME, GROOVY_HOME, MAVEN_HOME, ... variables.
This question like this thread.
How to rename multiple files by replacing word in file name?
My example is more complex than the above topic.
The two variables are $name and $ newname getting from the shell script other location.
$name and $ newname may have the unicode words or special symbles like []<>♫...etc,so could anyone help me to provide a method to add a part of script in shell scrit
I have a requirement to merge chunks of text files in a directory to one or more files and then zip the merged file.
For ex: If i have half a million text files in a directory, say A. I want to merge sets of 50,000 files into 1 i.e. I will have 10 merged files each having the content of 50,000 files. Finally, I want to zip each merged file, i.e.
Hi Folks,
I wanted to know if i can use RegEx in a for-loop of a shell script.
Here's a scenario, I have a set of files say x1, x2, x3..x9 in a directory(obviously with files other than this pattern). I want to append a line of text to all files that follow pattern x[1-9]. Can someone help me out? I know its simple.
hi,i am using ubuntu and generally use VI editor to write shell scripts. i am required to write a shell script to copy the text of one file(a text file) into another file.While the script executes, the shell shall ask the user to input the source filename and destination filename (both these files have been initially created by using "cat" command in the terminal).
Thank you very much for viewing my post and offering your suggestions & help. I really appreciate it. ~Simba
1. The problem statement, all variables and given/known data:
File "Ageing" Shell Script
Part A) Write a shell script that will count the number of files in your account that were last modified 5 or more days ago.
Hi I have an issue, I want to get variables from an external file. Variable file var1=test var2-test2 I want to get these vars from another shell script. Does any one know how?
Found myself stuck on this seemingly trivial issue. I have this script which call other shell files to do their deeds. The shell files in turn call some other programs as well. My problem is that in two of these shell files, the control doesnt return to next command in script unless the Enter key is pressed.