10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Special character ? is added in between filename. Am not able to figure our why this is happening. In my Development environment special characters are not present. This issue is happening in the higher environment.
It would be helpful if somebody can tell what are the possible... (3 Replies)
Discussion started by: weknowd
2. Shell Programming and Scripting
How to answer the below interview question..
With a path and filename of "/mydir1/mydir2/mydir3/myfilenane.dat" write a UNIX script to display the filename (2 Replies)
Discussion started by: shumail
3. Shell Programming and Scripting
I do have folders containing having funny strings in their names and one space.
First, I do remove the funny strings and replace the space by an underscore.
find . -name '* *' | while read file;
target=`echo "$file" | sed 's/... (2 Replies)
Discussion started by: tempestas
4. Shell Programming and Scripting
Working in a Bourne shell. What command would list the filename and size of a file if the size of the file had to be bigger than $a and smaller than $b?
Output (if $a is 10 bytes and $b is 50 bytes):test1.txt 15
Ann :p (3 Replies)
Discussion started by: LowlyIntern
5. Shell Programming and Scripting
I have different type of file (.txt,.csv,.xml) format in my current directory. My requirement is that I need to remove the last character from the file format.
How to do that?.... (5 Replies)
Discussion started by: suresh01_apk
6. Shell Programming and Scripting
Hi i'm new to the forum and was hoping someone could help me with the following query.
I do alot of testing and have hundreds of log files output. I have a script (someone else wrote) which finds all the passed and failed logs and puts a number in a column onto a webpage:
Pass ... (4 Replies)
Discussion started by: defamer
7. UNIX for Dummies Questions & Answers
Hi i am currently using below command in shell script and calling it from cron job.
This is to take daily backup with the date as suffix to the file.When i try i unable to get the date suffixed to the backup file.
Please help me as to wt's wrong in this or how to get the date added to the... (5 Replies)
Discussion started by: abhi_n123
8. Shell Programming and Scripting
I have a doubt. I want to display filename with date in the following format.Is there any way to do this. Kindly give me the solution.
I want to display the result in the following manner.
Please let me know one solution how to do... (1 Reply)
Discussion started by: pstanand
9. Shell Programming and Scripting
I want to make a script for change filename's character not in English for a given directory. But I am not sure where am I starting from due to I am a little bit new user for scripts.
At least is there anybody can help me to make first step ,how can I find illegal or unwanted characters in file... (5 Replies)
Discussion started by: xramm
10. UNIX for Dummies Questions & Answers
I'm just learning UNIX and I'm trying to do the following:
Write a script called details.bash that, for each file in the working directory, prints the filename, the # of lines, and the # of words to to some output file, like this:
filename1 73 431
filename2 5 21
It's probably a stupid... (1 Reply)
Discussion started by: asianmike