10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi I have a set of files in one directory like below
FIN_TASK1.csv
FINA_TASK2.csv
FIN_TASK3.csv.
I want a command to print the count in each file and the correspong file name into one file.My expected output is given below
cat filcount.txt
2 "FIN_TASK1.csv"
4 "FIN_TASK2.csv"
... (3 Replies)
Discussion started by: ginrkf
3 Replies
2. HP-UX
Hello,
I have spent a couple of hours trying to answer this myself, so forgive me if the answer is simple but I have tried.
I have a text file generated from svn log output which contains a list of files.
Two regexps im using are
*
and
*
They both work but some lines has a mixture... (7 Replies)
Discussion started by: YogaBija
7 Replies
3. Shell Programming and Scripting
Hello,
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;
do
target=`echo "$file" | sed 's/... (2 Replies)
Discussion started by: tempestas
2 Replies
4. Shell Programming and Scripting
Hi,
I have been trying to change underscores to dots.
For example:
1122_91 1022_233 .
2237_23 9382_2339 2998_234
345_257 . .
Desired output:
1122.91 1022.233 .
2237.23 9382.2339 2998.234
345.257 . .
Any idea?
Thanks (4 Replies)
Discussion started by: iconig
4 Replies
5. Shell Programming and Scripting
Hi Everyone,
I am looking for a command that would do the following:
1) Change all the letters/words in a file to Lower case Letters/words.
2) Remove the Underscore (_) and Change the Character after the underscore (_) to an Uppercase letter.
Example:
File contains the below words:
... (5 Replies)
Discussion started by: filter
5 Replies
6. UNIX for Advanced & Expert Users
How does adding an underscore change a google search? I was searching for John Elway and got different results with and without an unscore. (3 Replies)
Discussion started by: cokedude
3 Replies
7. Shell Programming and Scripting
Hi
I have the following files in a directory -
ds_pl_W_Test
ds_pl_list_Test
ds_pl_list_Test
ds_pl_listl_Test
ds_pl_file_Test
ds_pl_xx_Test
I would like to count the number files in the directory that contain the word "list"
I tried the following but it returns zero -
... (3 Replies)
Discussion started by: Prega
3 Replies
8. Shell Programming and Scripting
I am taking an user input which should only be an alphanumeric character or an underscore. How to i do it? (2 Replies)
Discussion started by: vickylife
2 Replies
9. Shell Programming and Scripting
Hi what is the purpose of using underscore in awk. I suppose it is for defining macro's and reducing repeatation but can some one show me an example? (6 Replies)
Discussion started by: ahmedwaseem2000
6 Replies
10. UNIX for Dummies Questions & Answers
Hello people.
I need some help to do this:
I've got some files that i need to count the caracters of filenames.
20080209_2000591574_237004076372.xml
20080202_1360584_267002636042.xml
The minimum is 15 . If some file with less must move them to another directory.
Obviously these... (3 Replies)
Discussion started by: osramos
3 Replies