Search Results

Search: Posts Made By: divya bandipotu
12,910
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,055
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,364
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,640
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,890
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,890
Posted By divya bandipotu
#!/bin/bash
#!/bin/bash
8,890
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...
10,162
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,109
Posted By divya bandipotu
sed 's/\(.*\);\(.*\)/\www\/xxx\/\1\/yyy\/\2/' ...
sed 's/\(.*\);\(.*\)/\www\/xxx\/\1\/yyy\/\2/' <File_Name>
24,298
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,242
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,508
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,340
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,676
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,715
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,789
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,818
Posted By divya bandipotu
ya.. I need with sed....
ya.. I need with sed....
1,818
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,985
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,662
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,806
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:'
35,190
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,640
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,230
Posted By divya bandipotu
with the help of sed.. sed...
with the help of sed..

sed 's/^<.*>\([0-9]*\)<.*/\1/' <file_name>
35,166
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 06:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy