Search Results

Search: Posts Made By: shashwat2691
1,315
Posted By shashwat2691
String Manipulation
Write a shell program to display the position of the right - most character in a given input string.

Example :
Input : RAHUL
Output : L is in the 5th position


also tell me how to count...
1,880
Posted By shashwat2691
String Manipulation
Write a shell program to display the position of the right - most character in a given input string.

Example :
Input : RAHUL
Output : L is in the 5th position


also tell me how to count...
1,605
Posted By shashwat2691
To start printing a file at line " n" .
To start printing a file at line " n" .
let n = 10 and FileName = f1
1,095
Posted By shashwat2691
Changing Name of File
Write a shell program to replace the starting alphabet "a" with "k" for the file names in the current directory.

Note : Change only the file names starting with "a". Rest of the file names remains...
3,768
Posted By shashwat2691
if file1: 1 2 3 file2: 4 5 6 ...
if
file1:
1
2
3

file2:
4
5
6

then
cat file1 >> file2 is generating
1
2
3
4
5
6
3,768
Posted By shashwat2691
The file1 >> file2 is generating 1 2 3 4 ...
The file1 >> file2 is generating
1
2
3
4
5
6

and file2 >> file is generating
4
5
6
1
2
3

which i asked in question.
The content of file2 should be appended with the content of...
3,768
Posted By shashwat2691
You are almost right but as i tried it...
You are almost right

but as i tried it should be:
cat file2 >> file1

thanks
3,768
Posted By shashwat2691
Appending file content
how to append the contents of filel to the contents of file2?.

i.e.

file1:
1
2
3

file2:
4
5
6

then the file2 shoud be
4
5
6
1
2
Showing results 1 to 8 of 8

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