Search Results

Search: Posts Made By: thanuman
4,390
Posted By thanuman
There looks to be some tabs , null characters in...
There looks to be some tabs , null characters in between, I suppose...
They are not only spaces... Anyway to get rid of them
23,736
Posted By thanuman
Identifying invisible characters in Unix file
I have a file, which when you look at it, appears as if it has spaces....
But sometimes, it is has tab or Nulls or some other character which we are not able to see.....
How to find what character...
4,390
Posted By thanuman
Iam on sun solaris.... sed 's/> *</></g' a1.t...
Iam on sun solaris....
sed 's/> *</></g' a1.t >a2.t is not working...
I tried the above command in different ways

sed 's/\> *\</\>\</g' a1.t >a2.t

sed 's/\> \</\>\</g' a1.t >a2.t

None...
4,390
Posted By thanuman
Removing spaces between records
Hi I have an XML file. Which has spaces between different records....

current file( Has many lines, like this... I want to delete all the spaces between > and <, if there are only spaces between...
8,269
Posted By thanuman
Locking a file in ksh
We want to lock a file, during a program(pgm1) execution(until the execution of the program is completed), so that other program(pgm2) can't read/edit that file, until execution of earlier...
4,990
Posted By thanuman
nawk '$1==p{$4=sprintf("%04d",$4+1)};1' p=PROG2...
nawk '$1==p{$4=sprintf("%04d",$4+1)};1' p=PROG2 table > table
Hi if I use the command like above, the table is erased totally

nawk '$1==p{$4=sprintf("%04d",$4+1)};1' p=PROG2 table > table1
it...
4,990
Posted By thanuman
syntax error...
Iam getting below syntax error ( Using Sunsolaris)

awk '$1==p{$4=sprintf("%04d",$4+1)};1' p=PROG2 table > table1
awk: syntax error near line 1
awk: bailing out near line 1

Something to be...
4,990
Posted By thanuman
updating a column in a unix table for a particular row
Hi,
I have the following requirement.
I have a unix table as below

progname par1 par2 par3 par4
PROG1 abc def 0012 ooo
PROG2 wed xas 0100 xxx
PROG3 ...
4,668
Posted By thanuman
Hi Ygor, U r correct, currently in the...
Hi Ygor,
U r correct, currently in the file, I have only one line and there is no linefeed character, how to proceed in this case... What can we do in this to work, without adding line feed...
2,715
Posted By thanuman
string of 7 char length always...
Hi,
I know, particular value in the variable should always be of lenth 7 , but the value that is present in thevariable might be of any no.of characters less than or equal to 7... if the no.of...
4,668
Posted By thanuman
Hi, If I concatenate a space at the end of the...
Hi,
If I concatenate a space at the end of the file, then sed is working

cat "" >> abc.txt
If I do like this.. then it is working for any length.... but the no.of bytes the file is showing, is...
4,668
Posted By thanuman
Sed working on lines of small length and not large length
Hi ,
I have a peculiar case, where my sed command is working on a file which contains lines of small length.

sed "s/XYZ:1/XYZ:3/g" abc.txt > xyz.txt

when abc.txt contains lines of small...
7,717
Posted By thanuman
adding line terminator
Can someone help , how to add a terminator at the end of each line through shell command.
ex:
input file:
abc
xyz2

outputfile (terminator is !)
abc!
xyz2!
2,007
Posted By thanuman
Writing data onto new lines based on terminator
I have a requirement, where based on a particular character on a single line, the data has to be written to new lines...

Ex: abccd$xyzll$bacc$kkklkjl$albc
My output should be
abccd$
xyzll$...
23,019
Posted By thanuman
Thanks for your responses. It's working great...
Thanks for your responses. It's working great...
23,019
Posted By thanuman
Splitting a single line into multiple lines
I have a case where, I need to look into a file.
Go to each line of the file, find the length of the line, if the length of the line is more than 75 chars, I need to split the line into multiple...
2,987
Posted By thanuman
Thanks .. It's working fine
Thanks .. It's working fine
2,987
Posted By thanuman
length of data greater than 11
I need to get all the rows in a file, for which length of field at column 6 is greater than 11.

I tried

awk '{ if ($#1 >11) print $1}' filename

But Iam getting some errors

I tried...
5,845
Posted By thanuman
I want to get all the files between start.file...
I want to get all the files between start.file and end.file in the current directory only (not files in the sub directories).

find . -type f -name '*xyz*' -newer start.file ! -newer end.file...
5,845
Posted By thanuman
find . -type f -name '*xyz*' -newer start.file !...
find . -type f -name '*xyz*' -newer start.file ! -newer end.file -exec ls -ltr {} \+
The above cmd is not giving files accord. to timestamp , so doesn't give required o/p

find . -type f -name...
5,845
Posted By thanuman
I have 200 or more files , I already tried -exec...
I have 200 or more files , I already tried -exec ls -ltr {} \; option, but it didn't work...
5,845
Posted By thanuman
find command not giving file names accord. to timestamps
Currently iam working on solaris environment,
Iam using find command to get list of all files between any two given dates. But the find command is not listing files accord. to timestamp. I tried...
88,617
Posted By thanuman
Thanks for the help... It is working as per...
Thanks for the help... It is working as per expectations..
Is it possible to do this with sed /awk /fgrep...
88,617
Posted By thanuman
files between any two given dates
Can any one help me in getting all the files between any two given dates..
Showing results 1 to 24 of 24

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