Find special character in last line of text file
By : Дима Тюрин
Date : March 29 2020, 07:55 AM
hop of those help? if [[ $line1=:]] is incorrect syntax in couple of ways as spaces around = are missing and backtick is used for command substitution awk itself can handle this: code :
awk '/./{line=$0} END{print (line ~ /\.m/)? "ok" : "no"}' file
ok
|
How to find out a record with special character not matching a type of format having the same special character?
By : Cesar Valdez Restitu
Date : March 29 2020, 07:55 AM
|
i have 200 text file in hindi. want to remove white space the special character and find the find bigram and trigram in
By : user3712983
Date : March 29 2020, 07:55 AM
I hope this helps . , Try this way: code :
for file in filename:
filepath=os.path.join(dir1,file)
with open('inp.txt','r+') as f:
texts = f.read()
for c in bad_chars:
texts=texts.replace(c,' ')
#write to the file
with open('inp.txt','w') as f:
f.write(texts)
|
find a special character in file & remove the special character, before/after words of special character using shell
By : Kuang Yuan Lin
Date : March 29 2020, 07:55 AM
hope this fix your issue A file contains email addresses. Requirement is to remove words present before/after a special character & also the special character from a file. , I'd use perl or sed
|
Extract substring in bash from a file with pattern location from a given position to a special character
By : polly 王
Date : March 29 2020, 07:55 AM
|