Search Results

Search: Posts Made By: divya bandipotu
12,612
Posted By divya bandipotu
List all the files in the present path and Folders and subfolders files also
Hi,

I need a script/command to list out all the files in current path and also the files in folder and subfolders.

Ex: My files are like below
$ ls -lrt
total 8
-rw-r--r-- 1 abc users 419...
5,021
Posted By divya bandipotu
Reg: Certification on Shell Scripting
Hi all,

Please let me know whether any certifications are there for Shell Scripting. (Not Brainbench). If any one know pls post the details.


Thanks in advnce..
11,314
Posted By divya bandipotu
Need EOF usage in shell scripting
Hi all,

Can any one explain the usage of EOF in shell scripting??
Gone through some examples from google, but it is not clear...

Examples are:
1.
$ tr [a-z] [A-Z] << EOF
> abcd
> efgh
>...
2,621
Posted By divya bandipotu
$ cat file1 I1 1 I2 2 I3 3 $ cat file2...
$ cat file1
I1 1
I2 2
I3 3

$ cat file2
I2 2.1
I1 1.1
I3 3.1

$ cat file2 | sort -u > file3

$ cat file3
I1 1.1
I2 2.1
I3 3.1

$ paste file1 file3 | awk '{print $1" "$2" "$4}'
I1 1...
8,845
Posted By divya bandipotu
From the above link only, I got some idea.. Any...
From the above link only, I got some idea..
Any how thanks for the suggestion.
8,845
Posted By divya bandipotu
#!/bin/bash
#!/bin/bash
8,845
Posted By divya bandipotu
Script using SSH with expect command
Hi all,

I want to connect to some host with "ssh". I have googled and got some commands of "expect" and "spawn". I was not aware of these commands and tried below script.

$ cat auto.sh
set...
9,993
Posted By divya bandipotu
Print one by one character
Hi all,

Can any one tell the script to print a line with one bye one character or word..

Ex: Hi every one. How are you all ....

I want to print like...

First it has to print H then...
2,077
Posted By divya bandipotu
sed 's/\(.*\);\(.*\)/\www\/xxx\/\1\/yyy\/\2/' ...
sed 's/\(.*\);\(.*\)/\www\/xxx\/\1\/yyy\/\2/' <File_Name>
24,088
Posted By divya bandipotu
$ cat output fstl:r-x ajay:r-x $ cat...
$ cat output
fstl:r-x
ajay:r-x


$ cat output | tr "\n" "," | sed 's/,$/ /' | tr " " "\n"
fstl:r-x,ajay:r-x
2,201
Posted By divya bandipotu
With the help od sed: $ sed -e 's/58 390/58...
With the help od sed:

$ sed -e 's/58 390/58 390 1/' -e 's/^\(.\)$/\>&/' <filename>

58 390 1
>A
GTATACATTATTGATGAAGTCCACATGCTTTCTATGGGTGCCTTCAATGCGCTTTTAAAA...
1,480
Posted By divya bandipotu
Can try with sed: $ cat temp.txt ...
Can try with sed:

$ cat temp.txt
SCHEM1.TAB1;COL1;DATATYPE;NOTNULL--
SCHEMA1.TAB1;COL2;DATATYPE;NOTNULL;WITH DEFAULT;--
....
SCHEMA1.TABn;COL1;DATATYPE;NOTNULL;WITH DEFAULT;


$ sed -e...
1,323
Posted By divya bandipotu
Hi, If u want, then need to do some...
Hi,

If u want, then need to do some modifications in below script and use...

clear
echo -n "Enter the name of file : "
read name
echo "Checking the existance of file $name"
echo
echo...
1,517
Posted By divya bandipotu
Hi, Please check below $ cat read...
Hi,

Please check below


$ cat read
ABCD Test[21455]:3 ZZZZYYYZZ
ABCD TEST[324494]:38 XXXYYYZZZ


$ cat read | sed 's/\(.*\)\[\(.*\)\]:\(.*\) \(.*\)/\2 \3/'
21455 3
324494 38
1,622
Posted By divya bandipotu
Please check the below sample code... $...
Please check the below sample code...


$ cat fun.sh
Menu ()
{
echo -n "Enter a positive number:"
read a
Greater
}
####
Greater ()
{
if [[ $a -gt 0 ]]
then
echo "$a is Positive...
4,675
Posted By divya bandipotu
cat 9temp -2400.00 34 0.00 -987.00 ...
cat 9temp
-2400.00
34
0.00
-987.00
-92.56


With the help of sed:
cat 9temp | sed 's/^-\(.*\)/\1\-/'
2400.00-
34
0.00
987.00-
92.56-
1,791
Posted By divya bandipotu
ya.. I need with sed....
ya.. I need with sed....
1,791
Posted By divya bandipotu
Extract data b/w two words using sed
Hi,

I want to extract data b/w two words with the help of sed..

Eg: In "Anna said that she would fetch the bucket", I want to display data b/w "Anna" and "would"
O/P: said that she

I...
3,810
Posted By divya bandipotu
one more option with "SED" sed -n '/^[0-9]/p'...
one more option with "SED"
sed -n '/^[0-9]/p' <file_name>
2,634
Posted By divya bandipotu
$ cat temp #---- Set Silent License Acceptance ...
$ cat temp
#---- Set Silent License Acceptance
#---- Accept license agreement: remove # sign
#---- example: LICENSE_ACCEPTED=true
#---- if the LICENSE_ACCEPTED is anything other...
1,763
Posted By divya bandipotu
Could u try with SED grep -E '^Log viewer/'...
Could u try with SED

grep -E '^Log viewer/' | sed 's:\(.*\)/\(.*\) (\(.*\):\2:'
34,974
Posted By divya bandipotu
Test command with "-z" and "-n"
Hello all,

Please let me know, why the value of $? is diff for -z and -n. And explain what are the operends we can use with "test" and their purpose..

$ test -z ""
$ echo $?
0

$ test...
4,490
Posted By divya bandipotu
@krrishv I have removed numbers and spaces...
@krrishv

I have removed numbers and spaces from all the rows and tried like below...
cat checkit.sh
Identifier,Username,First_Name,Middle,Last_Name,Employee_ID,City,RS...
2,152
Posted By divya bandipotu
with the help of sed.. sed...
with the help of sed..

sed 's/^<.*>\([0-9]*\)<.*/\1/' <file_name>
34,798
Posted By divya bandipotu
It is easy to try, if the sample results are...
It is easy to try, if the sample results are posted.. Any way, have u tried with "grep" command???

In my PC, time zone is "Jun 27 2011"

ls -lrt | grep -i "Jun 27 2011"

Lists todays...
Showing results 1 to 25 of 34

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