Hi all
I want to count total numbers of sentences separated by fullstop (.) in different files under a directory at one go. Any help is appreciated. (3 Replies)
In a directry there are 100 files are present....
How to append a statement like "Anup Das" in each of the file content, in the first line....
without opening the files.... (2 Replies)
Hi People,
I need some Help to write a unix script that asks for a sentence to be typed out then with the sentence. Counts the number of spaces within the sentence and then echo's out "The Number Of Spaces In The Sentence is 4" as a example
Thanks
Danielle (12 Replies)
I have to pass a sentence in a file, the specs are as:
cat run | sed 's/SRT/'$8'/g' | sed 's/plength/68/g' | sed 's/stcol/'$5'/g' | sed 's/encol/'$6'/g' | sed 's/brdtype/'$1'/g' | sed's/brdtxt/'$3'/g' | sed 's/demotxt/Total '$2'/g' | sed 's/bantxt/ban_'$7'/g' | sed 's/validcodes/'$4'/g' > runx
... (1 Reply)
Dear all,
In a bash script, I grep a filename from an UTF8 encoded file:
LIST=`grep ^source $FILE | tr "\t" " " | cut -d " " -f 2 | sed -e 's,~,\$HOME,g'`
The result is
# echo $LIST
$HOME/.mail_aliases_seminaire_MMMG
Then I try to access it:
#ls $LIST
ls: cannot access... (3 Replies)
Dear Friends,
I need your help once again.
I have a flat file from which I have grepped something and kept in a separate file for some reason. I want to replace these grepped srtings with the strings in another file.
E.g.
Actual_file.txt
COLOR: 33179 Lakme SEPT2011
Lot No: BR25324
... (5 Replies)
Hi,
I am quite new to shell scripting.
I am facing challenge in retrieving a specific number from a sentence from the log. the number is random and changes everytime in the log.
For example,
The number of rows updated in table is: 7000
The number of rows updated in table is: 8000
The... (3 Replies)
Hello! I'd like some help with a sentance, this 'if' should take a string from the user, then search my list for that string, now only those lines that string is found should be worked on.
I'm new to this, but i'm guessing it's something like this..
#!/bin/bash
... (10 Replies)
Hi
I have two text files. The first file is TEXTFILEONE.txt as given below:
<Text Text_ID="10155645315851111_10155645333076543" From="460350337461111" Created="2011-03-16T17:05:37+0000" use_count="123">This is the first text</Text>
<Text Text_ID="10155645315851111_10155645317023456"... (7 Replies)
i am having some bash script which must use first sentence of the file. For example i have file which content is:
test 213
So I must use word test into my bash script, and put it into variable.
I am using a one variable named value
value=$(</home/rusher/test.txt)
so instead using test.txt... (1 Reply)