Search Results

Search: Posts Made By: siddu_chittari
1,455
Posted By siddu_chittari
Substring by matching a pattern
Hi,

I have a string which is in the below format

"/abc/123/xyz/HI_I_AM_THE_FILE_12122012123456.TXT"

I want to extract the file name which is "HI_IAM_THE_FILE_12122012123456.TXT". the depth...
11,197
Posted By siddu_chittari
cat filename.dat | head -100 | tail -75 >>...
cat filename.dat | head -100 | tail -75 >> newfilename.dat

or

you can do by using awk also

awk 'NR==25,NR==100' filename.dat >> newfilename.dat
2,007
Posted By siddu_chittari
that is working !! thanks
that is working !! thanks
2,007
Posted By siddu_chittari
hmmm cut -c 1-2 filename.txt > newfile1.txt ...
hmmm

cut -c 1-2 filename.txt > newfile1.txt

cat newfile1.txt | while read line
do
sed '$line/${line}a/g'
done >> newfile.txt

paste newfile1.txt newfile.txt

I know this is crude way of...
2,007
Posted By siddu_chittari
file manipulation
Hi,

I have a file with 3 lines like

aaaabb
abcdef
wertyu

now i want to insert a new character "Q" in the 3rd position of every line of the file....

I found a way to do it but i felt it...
44,210
Posted By siddu_chittari
let us assume ur input is file1.txt cat...
let us assume ur input is file1.txt

cat file1.txt | grep -v "Mac address" > file2.txt

this will create a new file file2.txt without lines containing "Mac address"

hope this will help you
13,014
Posted By siddu_chittari
hi vino, I don't find any grep -o option....
hi vino,

I don't find any grep -o option. can anyone give me UNIX code as python is not available in our development server.

Thanks in advance
13,014
Posted By siddu_chittari
hi srikanth, This gives me the number of...
hi srikanth,

This gives me the number of fields in each line of my file but my requirement is different

for ex) let usa ssume my file like this

nasa isro nasa
nasa nasa isro
isro nasa nasa...
13,014
Posted By siddu_chittari
number of occurences of a string
hi,
I have a file where i need to count the occurences of a string ex) 'welcome to unix forum'. can anybody help me out
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 04:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy